* using log directory ‘/data/gannet/ripley/R/packages/tests-LENGTH1/RGA.Rcheck’ * using R Under development (unstable) (2022-04-26 r82260) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘RGA/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘RGA’ version ‘0.4.2’ * 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 ‘RGA’ can be installed ... [7s/19s] OK * checking package directory ... OK * checking ‘build’ 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 ... [10s/21s] 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [4s/15s] [5s/17s] ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(RGA) Please use predefined Credentials only for the testing requests. To obtain your own Credentials see help(authorize). > > test_check("RGA") ----------- FAILURE REPORT -------------- --- failure: length > 1 in coercion to logical --- --- srcref --- : --- package (from environment) --- RGA --- call from context --- FUN(X[[i]], ...) --- call from argument --- is.null(x) || is.na(x) --- R stacktrace --- where 1: FUN(X[[i]], ...) where 2: vapply(x, is.empty, logical(1L)) where 3: compact(x) where 4: fix_query(dots) where 5 at test-query.R#20: build_query(profile.id = 0, metrics = c("ga:users", "ga:sessions"), dimensions = c("ga:date", "ga:hour")) where 6: eval(code, test_env) where 7: eval(code, test_env) where 8: withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() } }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error) where 9: doTryCatch(return(expr), name, parentenv, handler) where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]]) where 11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) where 12: doTryCatch(return(expr), name, parentenv, handler) where 13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]]) where 14: tryCatchList(expr, classes, parentenv, handlers) where 15: tryCatch(withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() } }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error), error = handle_fatal, skip = function(e) { }) where 16: test_code(desc, code, env = parent.frame(), reporter = reporter) where 17 at test-query.R#19: test_that("Collapse all fields", { query <- build_query(profile.id = 0, metrics = c("ga:users", "ga:sessions"), dimensions = c("ga:date", "ga:hour")) expect_equal(length(query$metrics), 1L) expect_equal(length(query$dimensions), 1L) }) where 18: eval(code, test_env) where 19: eval(code, test_env) where 20: withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() } }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error) where 21: doTryCatch(return(expr), name, parentenv, handler) where 22: tryCatchOne(expr, names, parentenv, handlers[[1L]]) where 23: tryCatchList(expr, names[-nh], parentenv, handlers[-nh]) where 24: doTryCatch(return(expr), name, parentenv, handler) where 25: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], parentenv, handlers[[nh]]) where 26: tryCatchList(expr, classes, parentenv, handlers) where 27: tryCatch(withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() } }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error), error = handle_fatal, skip = function(e) { }) where 28: test_code(NULL, exprs, env) where 29: source_file(path, child_env(env), wrap = wrap) where 30: FUN(X[[i]], ...) where 31: lapply(test_paths, test_one_file, env = env, wrap = wrap) where 32: doTryCatch(return(expr), name, parentenv, handler) where 33: tryCatchOne(expr, names, parentenv, handlers[[1L]]) where 34: tryCatchList(expr, classes, parentenv, handlers) where 35: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL }) where 36: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, wrap = wrap)) where 37: test_files(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, wrap = wrap, load_package = load_package) where 38: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, wrap = wrap, load_package = load_package, parallel = parallel) where 39: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") where 40: test_check("RGA") --- value of length: 2 type: logical --- [1] FALSE FALSE --- function from context --- function (x) { stopifnot(is.atomic(x)) is.null(x) || is.na(x) || !length(x) || !nzchar(x) } --- function search by body --- Function is.empty in namespace RGA has this body. ----------- END OF FAILURE REPORT -------------- Fatal error: length > 1 in coercion to logical * checking for unstated dependencies in vignettes ... OK * checking package vignettes in ‘inst/doc’ ... OK * checking re-building of vignette outputs ... [5s/14s] 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 See ‘/data/gannet/ripley/R/packages/tests-LENGTH1/RGA.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 3:22.96, 65.68 + 9.23