Running ‘testthat.R’ [4s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(DrugUtilisation)
  > 
  > test_check("DrugUtilisation")
  Starting 2 test processes
  
  
  Error in `private$handle_error()`:
  ! testthat subprocess failed to start, stderr:
  ℹ `EUNOMIA_DATA_FOLDER` set to: '/tmp/RtmpjNCxhw'.
  trying URL 'https://example-data.ohdsi.dev/GiBleed.zip'
  Error in `FUN()`:
  ! In path: "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/DrugUtilisation.Rcheck/tests/testthat/setup.R"
  Caused by error in `utils::download.file()`:
  ! cannot open URL 'https://example-data.ohdsi.dev/GiBleed.zip'
  Backtrace:
       ▆
    1. ├─global callr_startup_hook()
    2. │ └─asNamespace("testthat")$queue_process_setup(...)
    3. │   └─asNamespace("testthat")$test_files_setup_state(...)
    4. │     └─testthat::source_test_setup(".", env)
    5. │       └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
    6. │         └─base::lapply(...)
    7. │           └─testthat (local) FUN(X[[i]], ...)
    8. │             └─testthat::source_file(path, env = env, chdir = chdir, wrap = wrap)
    9. │               ├─base::withCallingHandlers(...)
   10. │               └─base::eval(exprs, env)
   11. │                 └─base::eval(exprs, env)
   12. │                   └─CDMConnector::requireEunomia() at tests/testthat/setup.R:1:1
   13. │                     └─CDMConnector::downloadEunomiaData(...)
   14. │                       ├─withr::with_options(...)
   15. │                       │ └─base::force(code)
   16. │                       └─utils::download.file(...)
   17. └─base::.handleSimpleError(...)
   18.   └─testthat (local) h(simpleError(msg, call))
   19.     └─rlang::abort(...)
  Warning message:
  In utils::download.file(url = url, destfile = file.path(pathToData,  :
    URL 'https://example-data.ohdsi.dev/GiBleed.zip': status was 'Could not resolve hostname'
  Ran 4/4 deferred expressions
  Error in deferred_run(env) : could not find function "deferred_run"
  Calls: <Anonymous>
  Caused by error:
  ! R session crashed with exit code 1
  Backtrace:
       ▆
    1. └─testthat::test_check("DrugUtilisation")
    2.   └─testthat::test_dir(...)
    3.     └─testthat:::test_files(...)
    4.       └─testthat:::test_files_parallel(...)
    5.         ├─withr::with_dir(...)
    6.         │ └─base::force(code)
    7.         ├─testthat::with_reporter(...)
    8.         │ └─base::tryCatch(...)
    9.         │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.         │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.         │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   12.         └─testthat:::parallel_event_loop_chunky(queue, reporters, ".")
   13.           └─queue$poll(Inf)
   14.             └─base::lapply(...)
   15.               └─testthat (local) FUN(X[[i]], ...)
   16.                 └─private$handle_error(msg, i)
   17.                   └─rlang::abort(...)
  Execution halted