Running ‘testthat.R’ [31s/50s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pkgdown)
  > 
  > test_check("pkgdown")
  ── 1. Error: can override defaults in _pkgdown.yml (@test-figure.R#9)  ─────────
  System command error
  1: callr::rcmd("INSTALL", figure, show = FALSE, fail_on_status = TRUE) at testthat/test-figure.R:9
  2: run_r(options)
  3: with(options, with_envvar(env, do.call(processx::run, c(list(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, 
         stderr_to_stdout = stderr_to_stdout, echo_cmd = echo, echo = show, spinner = spinner, 
         error_on_status = fail_on_status, timeout = timeout), extra))))
  4: with.default(options, with_envvar(env, do.call(processx::run, c(list(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, 
         stderr_to_stdout = stderr_to_stdout, echo_cmd = echo, echo = show, spinner = spinner, 
         error_on_status = fail_on_status, timeout = timeout), extra))))
  5: eval(substitute(expr), data, enclos = parent.frame())
  6: eval(substitute(expr), data, enclos = parent.frame())
  7: with_envvar(env, do.call(processx::run, c(list(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, stderr_to_stdout = stderr_to_stdout, echo_cmd = echo, 
         echo = show, spinner = spinner, error_on_status = fail_on_status, timeout = timeout), 
         extra)))
  8: force(code)
  9: do.call(processx::run, c(list(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, stderr_to_stdout = stderr_to_stdout, echo_cmd = echo, 
         echo = show, spinner = spinner, error_on_status = fail_on_status, timeout = timeout), 
         extra))
  10: (function (command = NULL, args = character(), error_on_status = TRUE, wd = NULL, 
         echo_cmd = FALSE, echo = FALSE, spinner = FALSE, timeout = Inf, stdout_line_callback = NULL, 
         stdout_callback = NULL, stderr_line_callback = NULL, stderr_callback = NULL, 
         stderr_to_stdout = FALSE, env = NULL, windows_verbatim_args = FALSE, windows_hide_window = FALSE, 
         encoding = "", cleanup_tree = FALSE, ...) 
     {
         assert_that(is_flag(error_on_status))
         assert_that(is_time_interval(timeout))
         assert_that(is_flag(spinner))
         assert_that(is.null(stdout_line_callback) || is.function(stdout_line_callback))
         assert_that(is.null(stderr_line_callback) || is.function(stderr_line_callback))
         assert_that(is.null(stdout_callback) || is.function(stdout_callback))
         assert_that(is.null(stderr_callback) || is.function(stderr_callback))
         assert_that(is_flag(cleanup_tree))
         assert_that(is_flag(stderr_to_stdout))
         "!DEBUG run() Checked arguments"
         if (!interactive()) 
             spinner <- FALSE
         stderr <- if (stderr_to_stdout) 
             "2>&1"
         else "|"
         pr <- process$new(command, args, echo_cmd = echo_cmd, wd = wd, windows_verbatim_args = windows_verbatim_args, 
             windows_hide_window = windows_hide_window, stdout = "|", stderr = stderr, 
             env = env, encoding = encoding, cleanup_tree = cleanup_tree, ...)
         "#!DEBUG run() Started the process: `pr$get_pid()`"
         if (cleanup_tree) {
             on.exit(pr$kill_tree(), add = TRUE)
         }
         else {
             on.exit(pr$kill(), add = TRUE)
         }
         if (echo) {
             stdout_callback <- echo_callback(stdout_callback, "stdout")
             stderr_callback <- echo_callback(stderr_callback, "stderr")
         }
         runcall <- sys.call()
         resenv <- new.env(parent = emptyenv())
         res <- tryCatch(run_manage(pr, timeout, spinner, stdout_line_callback, stdout_callback, 
             stderr_line_callback, stderr_callback, resenv), interrupt = function(e) {
             "!DEBUG run() process `pr$get_pid()` killed on interrupt"
             resenv$stdout <- paste0(resenv$stdout, pr$read_output(), pr$read_output())
             resenv$stderr <- paste0(resenv$stderr, pr$read_error(), pr$read_error())
             tryCatch(pr$kill(), error = function(e) NULL)
             signalCondition(new_process_interrupt_cond(list(interrupt = TRUE, stderr = resenv$stderr, 
                 stdout = resenv$stdout), runcall, echo = echo, stderr_to_stdout = stderr_to_stdout))
             cat("\n")
             invokeRestart("abort")
         })
         if (error_on_status && (is.na(res$status) || res$status != 0)) {
             "!DEBUG run() error on status `res$status` for process `pr$get_pid()`"
             throw(new_process_error(res, call = sys.call(), echo = echo, stderr_to_stdout, 
                 res$status))
         }
         res
     })("/home/hornik/tmp/R.check/r-release-gcc/Work/build/bin/R", args = c("CMD", "INSTALL", 
     "assets/figure"), stdout_line_callback = function (x, proc) 
     {
         if (!is.null(stream)) 
             cat(x, file = stream, sep = "\n", append = TRUE)
     }, stderr_line_callback = function (x, proc) 
     {
         if (!is.null(stream)) 
             cat(x, file = stream, sep = "\n", append = TRUE)
     }, stdout_callback = NULL, stderr_callback = NULL, stderr_to_stdout = FALSE, echo_cmd = FALSE, 
         echo = FALSE, spinner = FALSE, error_on_status = TRUE, timeout = structure(Inf, class = "difftime", units = "secs"))
  11: throw(new_process_error(res, call = sys.call(), echo = echo, stderr_to_stdout, res$status))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 333 | SKIPPED: 11 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: can override defaults in _pkgdown.yml (@test-figure.R#9) 
  
  Error: testthat unit tests failed
  Execution halted