Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [2s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(piggyback)
  > Sys.setenv(piggyback_cache_duration=0)
  > test_check("piggyback")
  [ FAIL 1 | WARN 0 | SKIP 21 | PASS 2 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (15)
  • Sys.getenv("CBOETTIG_TOKEN") == "" is TRUE (5)
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-errors.R:11:5): Attempt upload without authentication ─────────
  `... <- NULL` threw an error with unexpected message.
  Expected match: ".token"
  Actual message: "number of characters is not computable in \"bytes\" encoding, element 1"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-errors.R:11:4
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─piggyback::pb_upload(...)
    7.   ├─piggyback::pb_releases(repo, .token)
    8.   │ ├─base::withVisible(eval(mc, parent.frame()))
    9.   │ └─base::eval(mc, parent.frame())
   10.   │   └─base::eval(mc, parent.frame())
   11.   └─piggyback (local) `<fn>`(repo = repo, .token = .token)
   12.     ├─piggyback:::maybe(...)
   13.     │ └─base::tryCatch(...)
   14.     │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   15.     │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   16.     │       └─value[[3L]](cond)
   17.     └─cli::cli_abort(...)
   18.       └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   19.         └─rlang:::signal_abort(cnd, .file)
   20.           └─base::signalCondition(cnd)
   21.             ├─base::conditionMessage(cond)
   22.             └─rlang:::conditionMessage.rlang_error(cond)
   23.               └─rlang::cnd_message(c)
   24.                 └─rlang:::cnd_message_format(cnd, ...)
   25.                   └─rlang (local) cli_format(glue_escape(lines))
   26.                     └─rlang:::.rlang_cli_format(x, cli::format_error)
   27.                       └─cli::cli_format(x, .envir = emptyenv())
   28.                         └─cli:::fmt(...)
   29.                           └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   30.                             ├─base::do.call(app[[msg$type]], msg$args)
   31.                             └─cli (local) `<fn>`(text = `<named list>`, id = "cli-2553110-11", class = NULL)
   32.                               └─cli:::clii_bullets(app, text, id, class)
   33.                                 └─base::lapply(...)
   34.                                   └─cli (local) FUN(X[[i]], ...)
   35.                                     └─app$text(text[[i]])
   36.                                       └─cli:::clii_text(app, text)
   37.                                         └─app$xtext(text)
   38.                                           └─cli:::clii__xtext(...)
   39.                                             └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   40.                                               └─base::lapply(pars, ansi_trimws)
   41.                                                 └─cli (local) FUN(X[[i]], ...)
  
  [ FAIL 1 | WARN 0 | SKIP 21 | PASS 2 ]
  Error: Test failures
  Execution halted