Running ‘testthat.R’ [5s/6s]
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 objects are masked from 'package:base':
  
      file, topenv, use
  
  [ FAIL 13 | WARN 1 | SKIP 10 | PASS 534 ]
  
  ══ Skipped tests (10) ══════════════════════════════════════════════════════════
  • On CRAN (6): 'test-find.r:93:5', 'test-find.r:98:5', 'test-rstudio.r:41:5',
    'test-rstudio.r:61:5', 'test-vignettes.r:30:5', 'test-z-attach.r:8:5'
  • Only run on Windows (1): 'test-file.r:102:5'
  • Outside source code repository (3): 'test-file.r:18:5', 'test-file.r:69:5',
    'test-interactive.r:3:1'
  
  ══ 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'
  Backtrace:
       ▆
    1. └─base::eval(...)
    2.   └─base::eval(...)
    3.     └─box::use(mod/help/a) at test-help.r:7:5
    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 (local) `<fn>`(...)
    8.               └─box:::rethrow_on_error(...)
    9.                 └─base::tryCatch(expr, error = function(error) rethrow(error, call))
   10.                   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   11.                     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12.                       └─value[[3L]](cond)
   13.                         └─box:::rethrow(error, call)
  ── 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:5
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) 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'
  Backtrace:
       ▆
    1. └─box::use(devtools) at test-pkg.r:38:5
    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 (local) `<fn>`(...)
    6.           └─box:::rethrow_on_error(...)
    7.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
    8.               └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.                 └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.                   └─value[[3L]](cond)
   11.                     └─box:::rethrow(error, call)
  ── 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'
  Backtrace:
       ▆
    1. └─box::use(dev = devtools) at test-pkg.r:57:5
    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 (local) `<fn>`(...)
    6.           └─box:::rethrow_on_error(...)
    7.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
    8.               └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.                 └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.                   └─value[[3L]](cond)
   11.                     └─box:::rethrow(error, call)
  ── 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'
  Backtrace:
       ▆
    1. └─box::use(devtools[load_all]) at test-pkg.r:64:5
    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 (local) `<fn>`(...)
    6.           └─box:::rethrow_on_error(...)
    7.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
    8.               └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.                 └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.                   └─value[[3L]](cond)
   11.                     └─box:::rethrow(error, call)
  ── 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:5
   2.   └─base::asNamespace(ns)
   3.     └─base::getNamespace(ns)
   4.       ├─.Internal(getRegisteredNamespace(name)) %||% ...
   5.       └─base::loadNamespace(name)
   6.         └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.           └─base (local) withOneRestart(expr, restarts[[1L]])
   8.             └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-pkg.r:94:5'): things can be attached globally ──────────────────
  <packageNotFoundError/box_error/error/condition>
  Error in `box::use(devtools[load_all])`: there is no package called 'devtools'
  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 (local) `<fn>`(...)
    8.           └─box:::rethrow_on_error(...)
    9.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
   10.               └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   11.                 └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12.                   └─value[[3L]](cond)
   13.                     └─box:::rethrow(error, call)
  ── 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:9
    4.   └─base::asNamespace(ns)
    5.     └─base::getNamespace(ns)
    6.       ├─.Internal(getRegisteredNamespace(name)) %||% ...
    7.       └─base::loadNamespace(name)
    8.         └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.           └─base (local) withOneRestart(expr, restarts[[1L]])
   10.             └─base (local) 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'
  Backtrace:
       ▆
    1. └─box::use(devtools[u = unload, reload, la = load_all]) at test-pkg.r:116:5
    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 (local) `<fn>`(...)
    6.           └─box:::rethrow_on_error(...)
    7.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
    8.               └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.                 └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.                   └─value[[3L]](cond)
   11.                     └─box:::rethrow(error, call)
  ── 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:5
   2.   └─base::asNamespace(ns)
   3.     └─base::getNamespace(ns)
   4.       ├─.Internal(getRegisteredNamespace(name)) %||% ...
   5.       └─base::loadNamespace(name)
   6.         └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.           └─base (local) withOneRestart(expr, restarts[[1L]])
   8.             └─base (local) 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:5
   2. │ └─testthat::quasi_label(rlang::enquo(list), arg = "list") at tests/testthat/helper-expect.r:34:5
   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'
  Backtrace:
       ▆
    1. └─box::use(devtools[load_all]) at test-pkg.r:148:5
    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 (local) `<fn>`(...)
    6.           └─box:::rethrow_on_error(...)
    7.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
    8.               └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.                 └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.                   └─value[[3L]](cond)
   11.                     └─box:::rethrow(error, call)
  ── 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'
  Backtrace:
       ▆
    1. └─box::use(dev = devtools[load_all]) at test-pkg.r:155:5
    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 (local) `<fn>`(...)
    6.           └─box:::rethrow_on_error(...)
    7.             └─base::tryCatch(expr, error = function(error) rethrow(error, call))
    8.               └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.                 └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.                   └─value[[3L]](cond)
   11.                     └─box:::rethrow(error, call)
  
  [ FAIL 13 | WARN 1 | SKIP 10 | PASS 534 ]
  Error: Test failures
  Execution halted