Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(binman)
  > 
  > test_check("binman")
  -- 1. Error: canDownloadFiles (@test-download_files.R#9)  ----------------------
  Can't mock functions in base packages (base)
  1: with_mock(`httr::GET` = function(...) {
         test_llres
     }, `base::dir.create` = function(...) {
         TRUE
     }, dlfiles <- download_files(dllist)) at testthat/test-download_files.R:9
  2: extract_mocks(new_values = new_values[!code_pos], .env = .env, eval_env = parent.frame())
  3: lapply(stats::setNames(nm = mock_qual_names), function(qual_name) {
         pkg_name <- gsub(pkg_and_name_rx, "\\1", qual_name)
         if (is_base_pkg(pkg_name)) {
             stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
         }
         name <- gsub(pkg_and_name_rx, "\\2", qual_name)
         if (pkg_name == "") 
             pkg_name <- .env
         env <- asNamespace(pkg_name)
         if (!exists(name, envir = env, mode = "function")) 
             stop("Function ", name, " not found in environment ", environmentName(env), 
                 ".", call. = FALSE)
         mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
  4: FUN(X[[i]], ...)
  5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
  
  -- 2. Error: canReturnEmptyDFWhenEmptyDownloadFiles (@test-download_files.R#27) 
  Can't mock functions in base packages (base)
  1: with_mock(`httr::GET` = function(...) {
         test_llres
     }, `base::dir.create` = function(...) {
         TRUE
     }, dlfiles <- download_files(dllist)) at testthat/test-download_files.R:27
  2: extract_mocks(new_values = new_values[!code_pos], .env = .env, eval_env = parent.frame())
  3: lapply(stats::setNames(nm = mock_qual_names), function(qual_name) {
         pkg_name <- gsub(pkg_and_name_rx, "\\1", qual_name)
         if (is_base_pkg(pkg_name)) {
             stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
         }
         name <- gsub(pkg_and_name_rx, "\\2", qual_name)
         if (pkg_name == "") 
             pkg_name <- .env
         env <- asNamespace(pkg_name)
         if (!exists(name, envir = env, mode = "function")) 
             stop("Function ", name, " not found in environment ", environmentName(env), 
                 ".", call. = FALSE)
         mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
  4: FUN(X[[i]], ...)
  5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
  
  /usr/bin/tar: Record size = 6 blocks
  /usr/bin/tar: Record size = 6 blocks
  -- 3. Error: canProcessYaml (@test-process_yaml.R#7)  --------------------------
  Can't mock functions in base packages (base)
  1: testthat::with_mock(`httr::GET` = function(...) {
         test_llres
     }, `base::dir.create` = function(...) {
         TRUE
     }, `utils::unzip` = function(zipfile, list = FALSE, ...) {
         if (list) {
             list(Name = zipfile)
         }
         else {
             zipfile
         }
     }, procyml <- process_yaml(ymlfile)) at testthat/test-process_yaml.R:7
  2: extract_mocks(new_values = new_values[!code_pos], .env = .env, eval_env = parent.frame())
  3: lapply(stats::setNames(nm = mock_qual_names), function(qual_name) {
         pkg_name <- gsub(pkg_and_name_rx, "\\1", qual_name)
         if (is_base_pkg(pkg_name)) {
             stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
         }
         name <- gsub(pkg_and_name_rx, "\\2", qual_name)
         if (pkg_name == "") 
             pkg_name <- .env
         env <- asNamespace(pkg_name)
         if (!exists(name, envir = env, mode = "function")) 
             stop("Function ", name, " not found in environment ", environmentName(env), 
                 ".", call. = FALSE)
         mock(name = name, env = env, new = eval(new_values[[qual_name]], eval_env, eval_env))
     })
  4: FUN(X[[i]], ...)
  5: stop("Can't mock functions in base packages (", pkg_name, ")", call. = FALSE)
  
  == testthat results  ===========================================================
  OK: 26 SKIPPED: 0 FAILED: 3
  1. Error: canDownloadFiles (@test-download_files.R#9) 
  2. Error: canReturnEmptyDFWhenEmptyDownloadFiles (@test-download_files.R#27) 
  3. Error: canProcessYaml (@test-process_yaml.R#7) 
  
  Error: testthat unit tests failed
  Execution halted