Running ‘runit.R’ [0s/0s]
  Running ‘testthat.R’ [0s/0s]
Running the tests in ‘tests/runit.R’ failed.
Complete output:
  > #!/usr/bin/Rscript --vanilla
  > is_failure <- function(result) {
  +     res <- result[[1]]
  +     names(res) <- tolower(names(res)) # soothe lintr
  +     sum_of_exceptions <- res[["nerr"]] + res[["nfail"]]
  +     fail <- as.logical(sum_of_exceptions)
  +     return(fail)
  + }
  > unit_dir <- system.file("runit", package = "document")
  > package_suite <- RUnit::defineTestSuite("document_unit_test",
  +                                         dirs = unit_dir,
  +                                         testFileRegexp = "^.*\\.r",
  +                                         testFuncRegexp = "^test_+")
  > 
  > test_result <- RUnit::runTestSuite(package_suite)
  Loading required package: document
  
  
  Executing test function test_txt  ... Timing stopped at: 0.007 0 0.007
  Error in dyn.load(file, DLLpath = DLLpath, ...) : 
    unable to load shared object '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/checkmate/libs/checkmate.so':
    /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/checkmate/libs/checkmate.so: failed to map segment from shared object
   done successfully.
  
  > RUnit::printTextProtocol(test_result, showDetails = TRUE)
  RUNIT TEST PROTOCOL -- Sun Dec 16 18:11:38 2018 
  *********************************************** 
  Number of test functions: 1 
  Number of errors: 1 
  Number of failures: 0 
  
   
  1 Test Suite : 
  document_unit_test - 1 test function, 1 error, 0 failures
  ERROR in test_txt: Error in dyn.load(file, DLLpath = DLLpath, ...) : 
    unable to load shared object '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/checkmate/libs/checkmate.so':
    /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/checkmate/libs/checkmate.so: failed to map segment from shared object
  
  
  
  Details 
  *************************** 
  Test Suite: document_unit_test 
  Test function regexp: ^test_+ 
  Test file regexp: ^.*\.r 
  Involved directory: 
  /tmp/Rtmp5pHV05/RLIBS_42d16a316acf/document/runit 
  --------------------------- 
  Test file: /tmp/Rtmp5pHV05/RLIBS_42d16a316acf/document/runit/expected_files.r 
  test_txt: ERROR !! 
  Error in dyn.load(file, DLLpath = DLLpath, ...) : 
    unable to load shared object '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/checkmate/libs/checkmate.so':
    /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/checkmate/libs/checkmate.so: failed to map segment from shared object
  > if (interactive()) {
  +     html_file <- paste(package_suite$name, "html", sep = ".")
  +     RUnit::printHTMLProtocol(test_result, fileName = html_file)
  +     html <- file.path(getwd(), html_file)
  +     browseURL(paste0("file:", html))
  + }
  > if (is_failure(test_result)) stop("RUnit failed.")
  Error: RUnit failed.
  Execution halted
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")
  Error: package or namespace load failed for 'testthat' in dyn.load(file, DLLpath = DLLpath, ...):
   unable to load shared object '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rlang/libs/rlang.so':
    /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/rlang/libs/rlang.so: failed to map segment from shared object
  Execution halted