R Under development (unstable) (2024-06-17 r86768 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > attach(asNamespace("epigrowthfit")) > options(warn = 2L, error = if (interactive()) recover) > > > ## isTrueFalse ######################################################### > > stopifnot(exprs = { + isTrueFalse(TRUE) + isTrueFalse(FALSE) + !isTrueFalse(NA) + !isTrueFalse(NULL) + !isTrueFalse(c(TRUE, TRUE)) + !isTrueFalse(1) + }) > > > ## isInteger ########################################################### > > stopifnot(exprs = { + isInteger(TRUE) + isInteger(FALSE) + !isInteger(NA) + isInteger(1L) + isInteger(-1) + isInteger(-1.1) + !isInteger(0x1p+31) + !isInteger(NA_real_) + !isInteger(NaN) + !isInteger(Inf) + !isInteger(NULL) + !isInteger(c(1, 1)) + !isInteger("1") + }) > > > ## isNumber ############################################################ > > stopifnot(exprs = { + !isNumber(TRUE) + isNumber(1L) + isNumber(-1) + isNumber(-1.1) + isNumber(0x1p+31) + !isNumber(NA_real_) + !isNumber(NaN) + !isNumber(Inf) + !isNumber(NULL) + !isNumber(c(1, 1)) + !isNumber("1") + }) > > > ## isString ############################################################ > > stopifnot(exprs = { + isString("1") + !isString(NA_character_) + !isString(NULL) + !isString(c("1", "1")) + !isString(1) + }) > > proc.time() user system elapsed 1.50 0.14 1.62