* using log directory ‘/data/gannet/ripley/R/packages/tests-LENGTH1/binaryLogic.Rcheck’ * using R Under development (unstable) (2022-04-25 r82252) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘binaryLogic/DESCRIPTION’ ... OK * this is package ‘binaryLogic’ version ‘0.3.9’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘binaryLogic’ can be installed ... [4s/19s] OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [6s/33s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking LazyData ... NOTE 'LazyData' is specified without a 'data' directory * checking examples ... ERROR Running examples in ‘binaryLogic-Ex.R’ failed The error most likely occurred in: > ### Name: binaryPrefix > ### Title: Binary prefix (KiB,MiB,..) > ### Aliases: binaryPrefix > > ### ** Examples > > #Get the number of byte needed to hold 0.5 and 1:10 KiB > binaryPrefix(c(0.5,1:10),"KiB") ----------- FAILURE REPORT -------------- --- failure: length > 1 in coercion to logical --- --- srcref --- : --- package (from environment) --- binaryLogic --- call from context --- stopifnot(all(n >= 0 || is.na(n))) --- call from argument --- n >= 0 || is.na(n) --- R stacktrace --- where 1: stopifnot(all(n >= 0 || is.na(n))) where 2: binaryPrefix(c(0.5, 1:10), "KiB") --- value of length: 11 type: logical --- [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE --- function from context --- function (..., exprs, exprObject, local = TRUE) { n <- ...length() if ((has.e <- !missing(exprs)) || !missing(exprObject)) { if (n || (has.e && !missing(exprObject))) stop("Only one of 'exprs', 'exprObject' or expressions, not more") envir <- if (isTRUE(local)) parent.frame() else if (isFALSE(local)) .GlobalEnv else if (is.environment(local)) local else stop("'local' must be TRUE, FALSE or an environment") E1 <- if (has.e && is.call(exprs <- substitute(exprs))) exprs[[1]] cl <- if (is.symbol(E1) && E1 == quote(`{`)) { exprs[[1]] <- quote(stopifnot) exprs } else as.call(c(quote(stopifnot), if (!has.e) exprObject else as.expression(exprs))) names(cl) <- NULL return(eval(cl, envir = envir)) } Dparse <- function(call, cutoff = 60L) { ch <- deparse(call, width.cutoff = cutoff) if (length(ch) > 1L) paste(ch[1L], "....") else ch } head <- function(x, n = 6L) x[seq_len(if (n < 0L) max(length(x) + n, 0L) else min(n, length(x)))] abbrev <- function(ae, n = 3L) paste(c(head(ae, n), if (length(ae) > n) "...."), collapse = "\n ") for (i in seq_len(n)) { r <- ...elt(i) if (!(is.logical(r) && !anyNA(r) && all(r))) { dots <- match.call()[-1L] if (is.null(msg <- names(dots)) || !nzchar(msg <- msg[i])) { cl.i <- dots[[i]] msg <- if (is.call(cl.i) && identical(cl.i[[1]], quote(all.equal)) && (is.null(ni <- names(cl.i)) || length(cl.i) == 3L || length(cl.i <- cl.i[!nzchar(ni)]) == 3L)) sprintf(gettext("%s and %s are not equal:\n %s"), Dparse(cl.i[[2]]), Dparse(cl.i[[3]]), abbrev(r)) else sprintf(ngettext(length(r), "%s is not TRUE", "%s are not all TRUE"), Dparse(cl.i)) } stop(simpleError(msg, call = if (p <- sys.parent(1L)) sys.call(p))) } } invisible() } --- function search by body --- Function stopifnot in namespace base has this body. ----------- END OF FAILURE REPORT -------------- Fatal error: length > 1 in coercion to logical * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘run-all.R’ [4s/20s] [5s/22s] OK * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 1 NOTE See ‘/data/gannet/ripley/R/packages/tests-LENGTH1/binaryLogic.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 3:31.85, 35.87 + 6.17