Running ‘testthat.R’ [3s/3s]
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-gcc/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: 0x563228d2e898>
  <environment: namespace:io>
   --- function search by body ---
  Function qwrite.hdf5 in namespace io has this body.
   ----------- END OF FAILURE REPORT -------------- 
  Fatal error: the condition has length > 1