Running ‘runit.R’ [18s/29s]
  Running ‘testthat.R’ [18s/28s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > running_on_my_machines <- function() {
  +     sys_info <- Sys.info()
  +     r <- sys_info[["nodename"]] %in% c("h7") &&
  +         sys_info[["effective_user"]] == "qwer" &&
  +         .Platform[["OS.type"]] == "unix"
  +     return(r)
  + }
  > 
  > set_NOT_CRAN  <- function() {
  +     is_unset <- is.na(Sys.getenv("NOT_CRAN", unset = NA))
  +     if (running_on_my_machines() && is_unset)
  +         Sys.setenv("NOT_CRAN" = TRUE)
  + }
  > 
  > set_NOT_CRAN()
  > library("testthat")
  > library("document")
  > test_check("document")
  ── R CMD build ─────────────────────────────────────────────────────────────────
    
     checking for file ‘.../DESCRIPTION’ ...
    
     checking for file ‘.../DESCRIPTION’ ...
    
  ✔  checking for file ‘.../DESCRIPTION’ (1.1s)
  
    
  
    
  ─  preparing ‘mini.mal’:
  
    
  
    
     checking DESCRIPTION meta-information ...
    
     checking DESCRIPTION meta-information ...
    
  ✔  checking DESCRIPTION meta-information
  
    
  
    
  ─  checking for LF line-endings in source and make files and shell scripts
  
    
  
    
  ─  checking for empty or unneeded directories
  ─  building ‘mini.mal_2.0.0.tar.gz’
  
    
  
    
  
    
     
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  
  ── 1. Error: (unknown) (@test_basic.R#13)  ─────────────────────────────────────
  Still alive
  1: document(file_name, check_package = TRUE, runit = TRUE) at testthat/test_basic.R:13
  2: check_package(package_directory = package_directory, working_directory = working_directory, 
         check_as_cran = check_as_cran, debug = debug, stop_on_check_not_passing = stop_on_check_not_passing)
  3: rcmdcheck::rcmdcheck(path = package_directory, libpath = .libPaths(), args = check_args)
  4: build_package(path, check_dir, build_args = build_args, libpath = libpath, quiet = quiet)
  5: with_envvar(c(R_LIBS_USER = paste(libpath, collapse = .Platform$path.sep)), {
         proc <- pkgbuild_process$new(path, tmpdir, args = build_args)
         on.exit(proc$kill(), add = TRUE)
         callback <- block_callback()
         while (proc$is_incomplete_output() || proc$is_incomplete_error()) {
             proc$poll_io(-1)
             out <- proc$read_output()
             err <- proc$read_error()
             if (!quiet) {
                 out <- sub("(checking for file .)/.*DESCRIPTION(.)", "\\1.../DESCRIPTION\\2", 
                     out, perl = TRUE)
                 callback(out)
                 callback(err)
             }
         }
         proc$get_built_file()
     })
  6: force(code)
  7: proc$get_built_file()
  8: stop("Still alive")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1 SKIPPED: 0 FAILED: 1
  1. Error: (unknown) (@test_basic.R#13) 
  
  Error: testthat unit tests failed
  Execution halted