CRAN Package Check Results for Package io

Last updated on 2019-12-09 02:46:40 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.3.0 3.75 31.61 35.36 ERROR
r-devel-linux-x86_64-debian-gcc 0.3.0 2.80 24.98 27.78 OK
r-devel-linux-x86_64-fedora-clang 0.3.0 42.62 OK
r-devel-linux-x86_64-fedora-gcc 0.3.0 39.38 OK
r-devel-windows-ix86+x86_64 0.3.0 6.00 56.00 62.00 OK
r-devel-windows-ix86+x86_64-gcc8 0.3.0 7.00 42.00 49.00 OK
r-patched-linux-x86_64 0.3.0 2.77 28.33 31.10 OK
r-patched-solaris-x86 0.3.0 57.40 ERROR
r-release-linux-x86_64 0.3.0 2.67 28.40 31.07 OK
r-release-windows-ix86+x86_64 0.3.0 9.00 43.00 52.00 OK
r-release-osx-x86_64 0.3.0 NOTE
r-oldrel-windows-ix86+x86_64 0.3.0 5.00 39.00 44.00 OK
r-oldrel-osx-x86_64 0.3.0 OK

Check Details

Version: 0.3.0
Check: tests
Result: ERROR
     Running 'testthat.R' [4s/4s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(stringr)
     > library(io)
     Loading required package: filenamer
     >
     > test_check("io")
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     io
     --- call from context ---
     qwrite.hdf5(x, if (is.filename(file)) as.character(file) else file,
     if (is.null(type)) .infer_file_type(file) else type, ...)
     --- call from argument ---
     if (type == "vector") {
     .write_hdf5_vector(x, file)
     } else if (type == "matrix") {
     .write_hdf5_matrix(x, file)
     } else if (type == "array") {
     .write_hdf5_array(x, file)
     } else if (type == "data.frame") {
     .write_hdf5_data.frame(x, file)
     }
     --- R stacktrace ---
     where 1: qwrite.hdf5(x, if (is.filename(file)) as.character(file) else file,
     if (is.null(type)) .infer_file_type(file) else type, ...)
     where 2: .qwrite(x, if (is.filename(file)) as.character(file) else file,
     if (is.null(type)) .infer_file_type(file) else type, ...)
     where 3 at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/io.Rcheck/tests/testthat/helper.R#48: qwrite(x, outfile)
     where 4 at testthat/test_read-write-read.R#8: test_read_write_read(f)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: 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 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: 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 15: test_code(NULL, exprs, env)
     where 16: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 17: force(code)
     where 18: doWithOneRestart(return(expr), restart)
     where 19: withOneRestart(expr, restarts[[1L]])
     where 20: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 21: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 22: FUN(X[[i]], ...)
     where 23: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 24: force(code)
     where 25: doWithOneRestart(return(expr), restart)
     where 26: withOneRestart(expr, restarts[[1L]])
     where 27: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 28: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 29: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 30: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 31: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 32: test_check("io")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (x, file, type, force = FALSE, ...)
     {
     .check_package("rhdf5")
     if (!is.character(file))
     stop("file must be a file name [character vector]")
     if (file.exists(file)) {
     file.remove(file)
     }
     rhdf5::h5createFile(file)
     type.i <- which(unlist(lapply(hdf5.supported.types, function(type) inherits(x,
     type))))
     if (is.atomic(x) && length(type.i) == 0) {
     type.i <- match("vector", hdf5.supported.types)
     }
     if (length(type.i) == 0) {
     if (force) {
     rhdf5::h5save(x, file = file)
     }
     else {
     stop("Writting ", class(x), " to HDF5 format is not supported; ",
     "set force=TRUE to write to HDF5 format anyway ",
     "(data attributes may be lost or transformed)",
     call. = FALSE)
     }
     }
     else {
     type <- hdf5.supported.types[type.i]
     if (type == "vector") {
     .write_hdf5_vector(x, file)
     }
     else if (type == "matrix") {
     .write_hdf5_matrix(x, file)
     }
     else if (type == "array") {
     .write_hdf5_array(x, file)
     }
     else if (type == "data.frame") {
     .write_hdf5_data.frame(x, file)
     }
     rhdf5::h5write("io::qwrite", file, "author")
     }
     }
     <bytecode: 0x142c480>
     <environment: namespace:io>
     --- function search by body ---
     Function qwrite.hdf5 in namespace io has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 1. Error: (unknown) (@test_read-write-read.R#8) ----------------------------
     the condition has length > 1
     Backtrace:
     1. io:::test_read_write_read(f)
     2. io::qwrite(x, outfile) /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/io.Rcheck/tests/helper.R:48:8
     4. io:::qwrite.hdf5(...)
    
     == testthat results ===========================================================
     [ OK: 2 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
     1. Error: (unknown) (@test_read-write-read.R#8)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.3.0
Check: tests
Result: ERROR
     Running ‘testthat.R’
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(stringr)
     > library(io)
     Loading required package: filenamer
     >
     > test_check("io")
     ── 1. Error: (unknown) (@test_read-write-read.R#8) ────────────────────────────
     HDF5. File accessibilty. Unable to open file.
     Backtrace:
     1. io:::test_read_write_read(f)
     2. io::qread(infile) /home/ripley/R/packages/tests32/io.Rcheck/tests/helper.R:47:8
     4. io:::qread.hdf5(...)
     10. rhdf5::h5ls(file)
     11. rhdf5:::h5checktypeOrOpenLoc(file, readonly = TRUE, native = native)
     12. rhdf5::H5Fopen(file, "H5F_ACC_RDONLY", native = native)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
     1. Error: (unknown) (@test_read-write-read.R#8)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-patched-solaris-x86

Version: 0.3.0
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘rhdf5’
Flavor: r-release-osx-x86_64