Running ‘testthat.R’ [7s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Needed for subshells openend in tests, and does no harm otherwise.
  > # See <https://github.com/hadley/testthat/issues/144> for details.
  > Sys.setenv(R_TESTS = '')
  > testthat::test_check('box')
  Loading required package: box
  
  Attaching package: 'box'
  
  The following object is masked from 'package:utils':
  
      help
  
  The following object is masked from 'package:base':
  
      file
  
  [ FAIL 13 | WARN 1 | SKIP 7 | PASS 499 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (3)
  • Only run on Windows (1)
  • Outside source code repository (3)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-help.r:7:5): (code run outside of `test_that()`) ────────────────
  <packageNotFoundError/box_error/error/condition>
  Error in `box::use(mod/help/a)`: there is no package called 'devtools'
  (inside "loadNamespace(pkg)")
  (inside "box::use(./c, devtools)")
  (inside "box::use(./b)")
  Backtrace:
       ▆
    1. └─base::eval(...)
    2.   └─base::eval(...)
    3.     └─box::use(mod/help/a) at test-help.r:7:4
    4.       └─box:::map(use_one, imports, aliases, list(caller), use_call = list(sys.call()))
    5.         └─base::Map(.f, ..., USE.NAMES = FALSE)
    6.           └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
    7.             └─box `<fn>`(...)
    8.               └─box:::rethrow_on_error(...)
    9.                 └─base::tryCatch(expr, error = function(error) rethrow(error, call))
   10.                   └─base tryCatchList(expr, classes, parentenv, handlers)
   11.                     └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12.                       └─value[[3L]](cond)
   13.                         └─box:::rethrow(error, call)
   14.                           └─box:::throw(...)
  ── Error (test-pkg.r:25:5): previously loaded user packages can be used ────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace("devtools")`: there is no package called 'devtools'
  Backtrace:
      ▆
   1. └─base::loadNamespace("devtools") at test-pkg.r:25:4
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-pkg.r:38:5): unloaded user packages can be used ─────────────────
  <packageNotFoundError/box_error/error/condition>
  Error in `box::use(devtools)`: there is no package called 'devtools'
  (inside "loadNamespace(pkg)")
  Backtrace:
       ▆
    1. └─box::use(devtools) at test-pkg.r:38:4
    2.   └─box:::map(use_one, imports, aliases, list(caller), use_call = list(sys.call()))
    3.     └─base::Map(.f, ..., USE.NAMES = FALSE)
    4.       └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
    5.         └─box `<fn>`(...)
    6.           └─box:::rethrow_on_error(...)
    7.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
    8.               └─base tryCatchList(expr, classes, parentenv, handlers)
    9.                 └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.                   └─value[[3L]](cond)
   11.                     └─box:::rethrow(error, call)
   12.                       └─box:::throw(...)
  ── Error (test-pkg.r:57:5): packages can be used with aliases ──────────────────
  <packageNotFoundError/box_error/error/condition>
  Error in `box::use(dev = devtools)`: there is no package called 'devtools'
  (inside "loadNamespace(pkg)")
  Backtrace:
       ▆
    1. └─box::use(dev = devtools) at test-pkg.r:57:4
    2.   └─box:::map(use_one, imports, aliases, list(caller), use_call = list(sys.call()))
    3.     └─base::Map(.f, ..., USE.NAMES = FALSE)
    4.       └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
    5.         └─box `<fn>`(...)
    6.           └─box:::rethrow_on_error(...)
    7.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
    8.               └─base tryCatchList(expr, classes, parentenv, handlers)
    9.                 └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.                   └─value[[3L]](cond)
   11.                     └─box:::rethrow(error, call)
   12.                       └─box:::throw(...)
  ── Error (test-pkg.r:64:5): things can be attached locally ─────────────────────
  <packageNotFoundError/box_error/error/condition>
  Error in `box::use(devtools[load_all])`: there is no package called 'devtools'
  (inside "loadNamespace(pkg)")
  Backtrace:
       ▆
    1. └─box::use(devtools[load_all]) at test-pkg.r:64:4
    2.   └─box:::map(use_one, imports, aliases, list(caller), use_call = list(sys.call()))
    3.     └─base::Map(.f, ..., USE.NAMES = FALSE)
    4.       └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
    5.         └─box `<fn>`(...)
    6.           └─box:::rethrow_on_error(...)
    7.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
    8.               └─base tryCatchList(expr, classes, parentenv, handlers)
    9.                 └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.                   └─value[[3L]](cond)
   11.                     └─box:::rethrow(error, call)
   12.                       └─box:::throw(...)
  ── Error (test-pkg.r:75:5): all things can be attached locally ─────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(name)`: there is no package called 'devtools'
  Backtrace:
      ▆
   1. └─base::getNamespaceExports("devtools") at test-pkg.r:75:4
   2.   └─base::asNamespace(ns)
   3.     └─base::getNamespace(ns)
   4.       └─base::loadNamespace(name)
   5.         └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.           └─base withOneRestart(expr, restarts[[1L]])
   7.             └─base doWithOneRestart(return(expr), restart)
  ── Error (???): things can be attached globally ────────────────────────────────
  <packageNotFoundError/box_error/error/condition>
  Error in `box::use(devtools[load_all])`: there is no package called 'devtools'
  (inside "loadNamespace(pkg)")
  Backtrace:
       ▆
    1. ├─base::eval(quote(box::use(devtools[load_all])), .GlobalEnv)
    2. │ └─base::eval(quote(box::use(devtools[load_all])), .GlobalEnv)
    3. └─box::use(devtools[load_all])
    4.   └─box:::map(use_one, imports, aliases, list(caller), use_call = list(sys.call()))
    5.     └─base::Map(.f, ..., USE.NAMES = FALSE)
    6.       └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
    7.         └─box `<fn>`(...)
    8.           └─box:::rethrow_on_error(...)
    9.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
   10.               └─base tryCatchList(expr, classes, parentenv, handlers)
   11.                 └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12.                   └─value[[3L]](cond)
   13.                     └─box:::rethrow(error, call)
   14.                       └─box:::throw(...)
  ── Error (test-pkg.r:105:9): all things can be attached globally ───────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(name)`: there is no package called 'devtools'
  Backtrace:
      ▆
   1. ├─base::eval(...)
   2. │ └─base::eval(...)
   3. └─base::getNamespaceExports("devtools") at test-pkg.r:105:8
   4.   └─base::asNamespace(ns)
   5.     └─base::getNamespace(ns)
   6.       └─base::loadNamespace(name)
   7.         └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.           └─base withOneRestart(expr, restarts[[1L]])
   9.             └─base doWithOneRestart(return(expr), restart)
  ── Error (test-pkg.r:116:5): attachments can be aliased ────────────────────────
  <packageNotFoundError/box_error/error/condition>
  Error in `box::use(devtools[u = unload, reload, la = load_all])`: there is no package called 'devtools'
  (inside "loadNamespace(pkg)")
  Backtrace:
       ▆
    1. └─box::use(devtools[u = unload, reload, la = load_all]) at test-pkg.r:116:4
    2.   └─box:::map(use_one, imports, aliases, list(caller), use_call = list(sys.call()))
    3.     └─base::Map(.f, ..., USE.NAMES = FALSE)
    4.       └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
    5.         └─box `<fn>`(...)
    6.           └─box:::rethrow_on_error(...)
    7.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
    8.               └─base tryCatchList(expr, classes, parentenv, handlers)
    9.                 └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.                   └─value[[3L]](cond)
   11.                     └─box:::rethrow(error, call)
   12.                       └─box:::throw(...)
  ── Error (test-pkg.r:126:5): wildcard attachments can contain aliases ──────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(name)`: there is no package called 'devtools'
  Backtrace:
      ▆
   1. └─base::getNamespaceExports("devtools") at test-pkg.r:126:4
   2.   └─base::asNamespace(ns)
   3.     └─base::getNamespace(ns)
   4.       └─base::loadNamespace(name)
   5.         └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.           └─base withOneRestart(expr, restarts[[1L]])
   7.             └─base doWithOneRestart(return(expr), restart)
  ── Error (test-pkg.r:143:5): only exported things can be attached ──────────────
  Error in `as.environment(pos)`: no item called "getNamespace("devtools")" on the search list
  Backtrace:
      ▆
   1. ├─box:::expect_in("yesno", ls(getNamespace("devtools"))) at test-pkg.r:143:4
   2. │ └─testthat::quasi_label(rlang::enquo(list), arg = "list") at tests/testthat/helper-expect.r:20:4
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─base::ls(getNamespace("devtools"))
  ── Error (test-pkg.r:148:5): packages that attach things are not aliased ───────
  <packageNotFoundError/box_error/error/condition>
  Error in `box::use(devtools[load_all])`: there is no package called 'devtools'
  (inside "loadNamespace(pkg)")
  Backtrace:
       ▆
    1. └─box::use(devtools[load_all]) at test-pkg.r:148:4
    2.   └─box:::map(use_one, imports, aliases, list(caller), use_call = list(sys.call()))
    3.     └─base::Map(.f, ..., USE.NAMES = FALSE)
    4.       └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
    5.         └─box `<fn>`(...)
    6.           └─box:::rethrow_on_error(...)
    7.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
    8.               └─base tryCatchList(expr, classes, parentenv, handlers)
    9.                 └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.                   └─value[[3L]](cond)
   11.                     └─box:::rethrow(error, call)
   12.                       └─box:::throw(...)
  ── Error (test-pkg.r:155:5): packages that attach things are can be aliased ────
  <packageNotFoundError/box_error/error/condition>
  Error in `box::use(dev = devtools[load_all])`: there is no package called 'devtools'
  (inside "loadNamespace(pkg)")
  Backtrace:
       ▆
    1. └─box::use(dev = devtools[load_all]) at test-pkg.r:155:4
    2.   └─box:::map(use_one, imports, aliases, list(caller), use_call = list(sys.call()))
    3.     └─base::Map(.f, ..., USE.NAMES = FALSE)
    4.       └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
    5.         └─box `<fn>`(...)
    6.           └─box:::rethrow_on_error(...)
    7.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
    8.               └─base tryCatchList(expr, classes, parentenv, handlers)
    9.                 └─base tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.                   └─value[[3L]](cond)
   11.                     └─box:::rethrow(error, call)
   12.                       └─box:::throw(...)
  
  [ FAIL 13 | WARN 1 | SKIP 7 | PASS 499 ]
  Error: Test failures
  Execution halted