[R-pkg-devel] CRAN submission error when running tests in testthat

Nathan Green n8th@ngreen @end|ng |rom y@hoo@co@uk
Wed Nov 24 17:37:44 CET 2021


Hi,
I've getting an ERROR when submitting a new release of our package BCEA to CRAN which I'm having problems understanding and reproducing. Its passing CHECK locally and GitHub Actions standard check (https://github.com/n8thangreen/BCEA/actions/runs/1494595896).
The message is something to do with testthat. Any help would be gratefully received.
Thanks!
Nathan

From https://cran.r-project.org/web/checks/check_results_BCEA.html
Here's the error message:
Check: tests, Result: ERROR
    Running ‘testthat.R’ [5s/5s]
  Running the tests in ‘tests/testthat.R’ failed.
  Last 13 lines of output:
    33: 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) {    })
    34: test_code(NULL, exprs, env)
    35: source_file(path, child_env(env), wrap = wrap)
    36: FUN(X[[i]], ...)
    37: lapply(test_paths, test_one_file, env = env, wrap = wrap)
    38: doTryCatch(return(expr), name, parentenv, handler)
    39: tryCatchOne(expr, names, parentenv, handlers[[1L]])
    40: tryCatchList(expr, classes, parentenv, handlers)
    41: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
    42: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
    43: 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)
    44: 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)
    45: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
    46: test_check("BCEA")
    An irrecoverable exception occurred. R is aborting now ...
See: <https://www.r-project.org/nosvn/R.check/r-release-macos-x86_64/BCEA-00check.html>,
     <https://www.r-project.org/nosvn/R.check/r-oldrel-macos-x86_64/BCEA-00check.html>

                                                                        Dr Nathan Green
@: n8thangreen using yahoo.co.ukTel: 07821 318353


	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list