Running ‘testthat.R’ [6s/7s]
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
  
  Saving _problems/test-pkg-143.R
  [ FAIL 1 | WARN 1 | SKIP 26 | PASS 545 ]
  
  ══ Skipped tests (26) ══════════════════════════════════════════════════════════
  • 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'
  • {devtools} is not installed. (4): 'test-pkg.r:25:5', 'test-pkg.r:75:5',
    'test-pkg.r:105:9', 'test-pkg.r:126:5'
  • {knitr} is not installed (3): 'test-knitr.r:6:5', 'test-knitr.r:13:5',
    'test-knitr.r:20:5'
  • {} is not installed. (9): 'test-help.r:7:5', 'test-pkg.r:38:5',
    'test-pkg.r:57:5', 'test-pkg.r:64:5', 'test-pkg.r:94:5', 'test-pkg.r:116:5',
    'test-pkg.r:148:5', 'test-pkg.r:155:5', 'test-pkg.r:164:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── 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 ./helper-expect.r:34:5
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─base::ls(getNamespace("devtools"))
  
  [ FAIL 1 | WARN 1 | SKIP 26 | PASS 545 ]
  Error:
  ! Test failures.
  Execution halted