Running 'test-that.R' [109s]
Running the tests in 'tests/test-that.R' failed.
Complete output:
  > library(testthat)
  > test_check("devtools")
  Loading required package: devtools
  --- re-building 'new.Rnw' using Sweave
  --- finished re-building 'new.Rnw'
  
  --- re-building 'new.Rnw' using Sweave
  --- finished re-building 'new.Rnw'
  
  --- re-building 'new.Rnw' using Sweave
  --- finished re-building 'new.Rnw'
  
  --- re-building 'test.Rmd' using knitr
  --- finished re-building 'test.Rmd'
  
  --- re-building 'test.Rmd' using knitr
  --- finished re-building 'test.Rmd'
  
  Error in process_initialize(self, private, command, args, stdin, stdout,  : 
    Command not found
  -- 1. Error: Extra files copied and removed (@test-vignettes.R#98)  ------------
  Command not found
  1: build_vignettes(pkg) at testthat/test-vignettes.R:98
  2: callr::r(build, args = list(pkg_path = pkg$path, clean = clean, upgrade = upgrade, 
         quiet = quiet), show = TRUE, spinner = FALSE)
  3: get_result(output = out, options)
  
  -- 2. Error: vignettes built on install (@test-vignettes.R#111)  ---------------
  Command not found
  1: install("testVignettesBuilt", reload = FALSE, quiet = TRUE, build_vignettes = TRUE) at testthat/test-vignettes.R:111
  2: pkgbuild::build(pkg$path, dest_path = tempdir(), args = build_opts, quiet = quiet)
  3: withr::with_temp_libpaths(rcmd_build_tools(options$cmd, c(options$path, options$args), 
         wd = options$out_dir, fail_on_status = TRUE, required = FALSE, quiet = quiet))
  4: force(code)
  5: rcmd_build_tools(options$cmd, c(options$path, options$args), wd = options$out_dir, 
         fail_on_status = TRUE, required = FALSE, quiet = quiet)
  6: with_build_tools(callr::rcmd_safe(..., env = env, spinner = FALSE, show = FALSE, 
         echo = FALSE, block_callback = block_callback(quiet)), required = required)
  7: withr::with_path(rtools_path(), code)
  8: force(code)
  9: callr::rcmd_safe(..., env = env, spinner = FALSE, show = FALSE, echo = FALSE, block_callback = block_callback(quiet))
  10: run_r(options)
  11: with(options, with_envvar(env, processx::run(bin, args = real_cmdargs, stdout_line_callback = real_callback(stdout), 
         stderr_line_callback = real_callback(stderr), stdout_callback = real_block_callback, 
         stderr_callback = real_block_callback, echo_cmd = echo, echo = show, spinner = spinner, 
         error_on_status = fail_on_status, timeout = timeout)))
  12: with.default(options, with_envvar(env, processx::run(bin, args = real_cmdargs, stdout_line_callback = real_callback(stdout), 
         stderr_line_callback = real_callback(stderr), stdout_callback = real_block_callback, 
         stderr_callback = real_block_callback, echo_cmd = echo, echo = show, spinner = spinner, 
         error_on_status = fail_on_status, timeout = timeout)))
  13: eval(substitute(expr), data, enclos = parent.frame())
  14: eval(substitute(expr), data, enclos = parent.frame())
  15: with_envvar(env, processx::run(bin, args = real_cmdargs, stdout_line_callback = real_callback(stdout), 
         stderr_line_callback = real_callback(stderr), stdout_callback = real_block_callback, 
         stderr_callback = real_block_callback, echo_cmd = echo, echo = show, spinner = spinner, 
         error_on_status = fail_on_status, timeout = timeout))
  16: force(code)
  17: processx::run(bin, args = real_cmdargs, stdout_line_callback = real_callback(stdout), 
         stderr_line_callback = real_callback(stderr), stdout_callback = real_block_callback, 
         stderr_callback = real_block_callback, echo_cmd = echo, echo = show, spinner = spinner, 
         error_on_status = fail_on_status, timeout = timeout)
  18: process$new(command, args, echo_cmd = echo_cmd, wd = wd, windows_verbatim_args = windows_verbatim_args, 
         windows_hide_window = windows_hide_window, stdout = "|", stderr = "|", env = env, 
         encoding = encoding, cleanup_tree = cleanup_tree)
  19: .subset2(public_bind_env, "initialize")(...)
  20: process_initialize(self, private, command, args, stdin, stdout, stderr, connections, 
         poll_connection, env, cleanup, cleanup_tree, wd, echo_cmd, supervise, windows_verbatim_args, 
         windows_hide_window, encoding, post_process)
  
  == testthat results  ===========================================================
  OK: 39 SKIPPED: 11 FAILED: 2
  1. Error: Extra files copied and removed (@test-vignettes.R#98) 
  2. Error: vignettes built on install (@test-vignettes.R#111) 
  
  Error: testthat unit tests failed
  Execution halted