Running 'spelling.R' [0s]
  Running 'testthat.R' [10s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(gargle)
  > 
  > test_check("gargle")
  [ FAIL 24 | WARN 0 | SKIP 13 | PASS 173 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (13)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-Gargle-class.R:46:3): `email = NA`, `email = FALSE` means we don't consult the cache ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressMessages(fauxen_out <- gargle2.0_token(cache = cache_folder)) at test-Gargle-class.R:46:2
    2. │ └─base::withCallingHandlers(...)
    3. └─gargle::gargle2.0_token(cache = cache_folder)
    4.   └─Gargle2.0$new(...)
    5.     └─gargle (local) initialize(...)
    6.       └─self$load_from_cache()
    7.         └─gargle:::token_from_cache(self)
    8.           └─gargle:::token_match(candidate$hash(), existing, package = candidate$package)
    9.             └─gargle:::gargle_info(msg)
   10.               └─cli::cli_bullets(text, .envir = .envir)
   11.                 └─cli:::cli__message(...)
   12.                   └─cli:::cli__message_emit(cond)
   13.                     ├─base::withRestarts(...)
   14.                     │ └─base (local) withOneRestart(expr, restarts[[1L]])
   15.                     │   └─base (local) doWithOneRestart(return(expr), restart)
   16.                     └─cli:::cli__default_handler(cond)
   17.                       └─cli:::cli_server_default(msg)
   18.                         └─cli:::cli_server_default_safe(msg)
   19.                           ├─base::do.call(app[[type]], msg$args)
   20.                           └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-34", class = NULL)
   21.                             └─cli:::clii_bullets(app, text, id, class)
   22.                               └─base::lapply(...)
   23.                                 └─cli (local) FUN(X[[i]], ...)
   24.                                   └─app$text(text[[i]])
   25.                                     └─cli:::clii_text(app, text)
   26.                                       └─app$xtext(text)
   27.                                         └─cli:::clii__xtext(...)
   28.                                           └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   29.                                             └─base::lapply(pars, ansi_trimws)
   30.                                               └─cli (local) FUN(X[[i]], ...)
  ── Error (test-oauth-cache.R:113:3): cache_clean() works ───────────────────────
  `cache_clean(cache_folder, "apple")` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Failure (test-oauth-cache.R:117:3): cache_clean() works ─────────────────────
  dat$app (`actual`) not equal to "banana" (`expected`).
  
  `actual`:   "apple" "banana"
  `expected`:         "banana"
  ── Failure (test-oauth-cache.R:122:3): cache_clean() works ─────────────────────
  nrow(dat) (`actual`) not equal to 0 (`expected`).
  
    `actual`: 1
  `expected`: 0
  ── Error (test-oauth-cache.R:147:3): cache_load() repairs tokens stored with names != their hash ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─utils::capture.output(tokens <- cache_load(cache_folder), type = "message") at test-oauth-cache.R:147:2
    2. │ └─base::withVisible(...elt(i))
    3. └─gargle:::cache_load(cache_folder)
    4.   └─gargle:::gargle_debug(msg)
    5.     └─cli::cli_bullets(text, .envir = .envir)
    6.       └─cli:::cli__message(...)
    7.         └─cli:::cli__message_emit(cond)
    8.           ├─base::withRestarts(...)
    9.           │ └─base (local) withOneRestart(expr, restarts[[1L]])
   10.           │   └─base (local) doWithOneRestart(return(expr), restart)
   11.           └─cli:::cli__default_handler(cond)
   12.             └─cli:::cli_server_default(msg)
   13.               └─cli:::cli_server_default_safe(msg)
   14.                 ├─base::do.call(app[[type]], msg$args)
   15.                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-184", class = NULL)
   16.                   └─cli:::clii_bullets(app, text, id, class)
   17.                     └─base::lapply(...)
   18.                       └─cli (local) FUN(X[[i]], ...)
   19.                         └─app$text(text[[i]])
   20.                           └─cli:::clii_text(app, text)
   21.                             └─app$xtext(text)
   22.                               └─cli:::clii__xtext(...)
   23.                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   24.                                   └─base::lapply(pars, ansi_trimws)
   25.                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-oauth-cache.R:225:3): token_match() finds a match based on domain ──
  `m <- token_match("abc_*@example.org", one_match_of_two)` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-oauth-cache.R:228:3): token_match() finds a match based on domain ──
  Error in `eval_bare(expr, quo_get_env(quo))`: object 'm' not found
  Backtrace:
      ▆
   1. └─testthat::expect_equal(m, one_match_of_two[[1]]) at test-oauth-cache.R:228:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error (test-oauth-cache.R:237:3): token_match() scolds but returns short hash match when non-interactive ──
  `m <- token_match("abc_", one_existing)` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-oauth-cache.R:240:3): token_match() scolds but returns short hash match when non-interactive ──
  Error in `eval_bare(expr, quo_get_env(quo))`: object 'm' not found
  Backtrace:
      ▆
   1. └─testthat::expect_equal(m, one_existing) at test-oauth-cache.R:240:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error (test-oauth-cache.R:347:3): gargle_oauth_sitrep() consults the option for cache location ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─utils::capture.output(gargle_oauth_sitrep(), type = "message") at test-oauth-cache.R:347:2
    2. │ └─base::withVisible(...elt(i))
    3. └─gargle::gargle_oauth_sitrep()
    4.   ├─cache %||% cache_locate()
    5.   └─gargle:::cache_locate()
    6.     └─gargle:::gargle_info(c(i = "Taking cache location from the {.code \"gargle_oauth_cache\"} option."))
    7.       └─cli::cli_bullets(text, .envir = .envir)
    8.         └─cli:::cli__message(...)
    9.           └─cli:::cli__message_emit(cond)
   10.             ├─base::withRestarts(...)
   11.             │ └─base (local) withOneRestart(expr, restarts[[1L]])
   12.             │   └─base (local) doWithOneRestart(return(expr), restart)
   13.             └─cli:::cli__default_handler(cond)
   14.               └─cli:::cli_server_default(msg)
   15.                 └─cli:::cli_server_default_safe(msg)
   16.                   ├─base::do.call(app[[type]], msg$args)
   17.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-219", class = NULL)
   18.                     └─cli:::clii_bullets(app, text, id, class)
   19.                       └─base::lapply(...)
   20.                         └─cli (local) FUN(X[[i]], ...)
   21.                           └─app$text(text[[i]])
   22.                             └─cli:::clii_text(app, text)
   23.                               └─app$xtext(text)
   24.                                 └─cli:::clii__xtext(...)
   25.                                   └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   26.                                     └─base::lapply(pars, ansi_trimws)
   27.                                       └─cli (local) FUN(X[[i]], ...)
  ── Error (test-request_retry.R:64:7): request_retry() logic works as advertised ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─utils::capture.output(...) at test-request_retry.R:64:6
    2. │ └─base::withVisible(...elt(i))
    3. └─gargle::request_retry(max_total_wait_time_in_seconds = 5)
    4.   └─gargle:::backoff(tries_made, resp, base = b)
    5.     └─gargle:::gargle_debug(msg)
    6.       └─cli::cli_bullets(text, .envir = .envir)
    7.         └─cli:::cli__message(...)
    8.           └─cli:::cli__message_emit(cond)
    9.             ├─base::withRestarts(...)
   10.             │ └─base (local) withOneRestart(expr, restarts[[1L]])
   11.             │   └─base (local) doWithOneRestart(return(expr), restart)
   12.             └─cli:::cli__default_handler(cond)
   13.               └─cli:::cli_server_default(msg)
   14.                 └─cli:::cli_server_default_safe(msg)
   15.                   ├─base::do.call(app[[type]], msg$args)
   16.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-276", class = NULL)
   17.                     └─cli:::clii_bullets(app, text, id, class)
   18.                       └─base::lapply(...)
   19.                         └─cli (local) FUN(X[[i]], ...)
   20.                           └─app$text(text[[i]])
   21.                             └─cli:::clii_text(app, text)
   22.                               └─app$xtext(text)
   23.                                 └─cli:::clii__xtext(...)
   24.                                   └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   25.                                     └─base::lapply(pars, ansi_trimws)
   26.                                       └─cli (local) FUN(X[[i]], ...)
  ── Error (test-request_retry.R:124:7): backoff() obeys obvious bounds from min_wait and max_wait ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─base::vapply(...) at test-request_retry.R:124:6
    2.   └─gargle (local) FUN(X[[i]], ...)
    3.     └─gargle:::gargle_info(c(x = "Request failed [{status_code}]. Retry {tries_made} happens in \\\n             {round(wait_time, 1)} seconds ..."))
    4.       └─cli::cli_bullets(text, .envir = .envir)
    5.         └─cli:::cli__message(...)
    6.           └─cli:::cli__message_emit(cond)
    7.             ├─base::withRestarts(...)
    8.             │ └─base (local) withOneRestart(expr, restarts[[1L]])
    9.             │   └─base (local) doWithOneRestart(return(expr), restart)
   10.             └─cli:::cli__default_handler(cond)
   11.               └─cli:::cli_server_default(msg)
   12.                 └─cli:::cli_server_default_safe(msg)
   13.                   ├─base::do.call(app[[type]], msg$args)
   14.                   └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-281", class = NULL)
   15.                     └─cli:::clii_bullets(app, text, id, class)
   16.                       └─base::lapply(...)
   17.                         └─cli (local) FUN(X[[i]], ...)
   18.                           └─app$text(text[[i]])
   19.                             └─cli:::clii_text(app, text)
   20.                               └─app$xtext(text)
   21.                                 └─cli:::clii__xtext(...)
   22.                                   └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   23.                                     └─base::lapply(pars, ansi_trimws)
   24.                                       └─cli (local) FUN(X[[i]], ...)
  ── Error (test-request_retry.R:163:7): backoff() honors Retry-After header ─────
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─gargle:::backoff(1, faux_429(list(`Retry-After` = "1.2"))) at test-request_retry.R:163:6
    2.   └─gargle:::gargle_info(c(x = "Request failed [{status_code}]. Retry {tries_made} happens in \\\n             {round(wait_time, 1)} seconds ..."))
    3.     └─cli::cli_bullets(text, .envir = .envir)
    4.       └─cli:::cli__message(...)
    5.         └─cli:::cli__message_emit(cond)
    6.           ├─base::withRestarts(...)
    7.           │ └─base (local) withOneRestart(expr, restarts[[1L]])
    8.           │   └─base (local) doWithOneRestart(return(expr), restart)
    9.           └─cli:::cli__default_handler(cond)
   10.             └─cli:::cli_server_default(msg)
   11.               └─cli:::cli_server_default_safe(msg)
   12.                 ├─base::do.call(app[[type]], msg$args)
   13.                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-288", class = NULL)
   14.                   └─cli:::clii_bullets(app, text, id, class)
   15.                     └─base::lapply(...)
   16.                       └─cli (local) FUN(X[[i]], ...)
   17.                         └─app$text(text[[i]])
   18.                           └─cli:::clii_text(app, text)
   19.                             └─app$xtext(text)
   20.                               └─cli:::clii__xtext(...)
   21.                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   22.                                   └─base::lapply(pars, ansi_trimws)
   23.                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-response_process.R:10:3): Resource exhausted (Sheets, ReadGroup) ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─gargle (local) expect_recorded_error(...) at test-response_process.R:10:2
    2.   ├─testthat::expect_error(response_process(resp), class = "gargle_error_request_failed") at test-response_process.R:4:2
    3.   │ └─testthat:::expect_condition_matching(...)
    4.   │   └─testthat:::quasi_capture(...)
    5.   │     ├─testthat (local) .capture(...)
    6.   │     │ └─base::withCallingHandlers(...)
    7.   │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8.   └─gargle::response_process(resp)
    9.     └─gargle:::gargle_abort_request_failed(error_message(resp), resp)
   10.       └─gargle:::gargle_abort(...)
   11.         └─cli::cli_abort(...)
   12.           └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   13.             └─rlang:::signal_abort(cnd, .file)
   14.               └─base::signalCondition(cnd)
   15.                 ├─base::conditionMessage(cond)
   16.                 └─rlang:::conditionMessage.rlang_error(cond)
   17.                   └─rlang::cnd_message(c)
   18.                     └─rlang:::cnd_message_format(cnd, ...)
   19.                       └─rlang (local) cli_format(glue_escape(lines))
   20.                         └─rlang:::.rlang_cli_format(x, cli::format_error)
   21.                           └─cli::cli_format(x, .envir = emptyenv())
   22.                             └─cli:::fmt(...)
   23.                               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   24.                                 ├─base::do.call(app[[msg$type]], msg$args)
   25.                                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-308", class = NULL)
   26.                                   └─cli:::clii_bullets(app, text, id, class)
   27.                                     └─base::lapply(...)
   28.                                       └─cli (local) FUN(X[[i]], ...)
   29.                                         └─app$text(text[[i]])
   30.                                           └─cli:::clii_text(app, text)
   31.                                             └─app$xtext(text)
   32.                                               └─cli:::clii__xtext(...)
   33.                                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   34.                                                   └─base::lapply(pars, ansi_trimws)
   35.                                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-response_process.R:17:3): Request for non-existent resource (Drive) ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─gargle (local) expect_recorded_error(...) at test-response_process.R:17:2
    2.   ├─testthat::expect_error(response_process(resp), class = "gargle_error_request_failed") at test-response_process.R:4:2
    3.   │ └─testthat:::expect_condition_matching(...)
    4.   │   └─testthat:::quasi_capture(...)
    5.   │     ├─testthat (local) .capture(...)
    6.   │     │ └─base::withCallingHandlers(...)
    7.   │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8.   └─gargle::response_process(resp)
    9.     └─gargle:::gargle_abort_request_failed(error_message(resp), resp)
   10.       └─gargle:::gargle_abort(...)
   11.         └─cli::cli_abort(...)
   12.           └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   13.             └─rlang:::signal_abort(cnd, .file)
   14.               └─base::signalCondition(cnd)
   15.                 ├─base::conditionMessage(cond)
   16.                 └─rlang:::conditionMessage.rlang_error(cond)
   17.                   └─rlang::cnd_message(c)
   18.                     └─rlang:::cnd_message_format(cnd, ...)
   19.                       └─rlang (local) cli_format(glue_escape(lines))
   20.                         └─rlang:::.rlang_cli_format(x, cli::format_error)
   21.                           └─cli::cli_format(x, .envir = emptyenv())
   22.                             └─cli:::fmt(...)
   23.                               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   24.                                 ├─base::do.call(app[[msg$type]], msg$args)
   25.                                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-323", class = NULL)
   26.                                   └─cli:::clii_bullets(app, text, id, class)
   27.                                     └─base::lapply(...)
   28.                                       └─cli (local) FUN(X[[i]], ...)
   29.                                         └─app$text(text[[i]])
   30.                                           └─cli:::clii_text(app, text)
   31.                                             └─app$xtext(text)
   32.                                               └─cli:::clii__xtext(...)
   33.                                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   34.                                                   └─base::lapply(pars, ansi_trimws)
   35.                                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-response_process.R:24:3): Request for which we don't have scope (Fitness) ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─gargle (local) expect_recorded_error("fitness-get-wrong-scope_403", 403) at test-response_process.R:24:2
    2.   ├─testthat::expect_error(response_process(resp), class = "gargle_error_request_failed") at test-response_process.R:4:2
    3.   │ └─testthat:::expect_condition_matching(...)
    4.   │   └─testthat:::quasi_capture(...)
    5.   │     ├─testthat (local) .capture(...)
    6.   │     │ └─base::withCallingHandlers(...)
    7.   │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8.   └─gargle::response_process(resp)
    9.     └─gargle:::gargle_abort_request_failed(error_message(resp), resp)
   10.       └─gargle:::gargle_abort(...)
   11.         └─cli::cli_abort(...)
   12.           └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   13.             └─rlang:::signal_abort(cnd, .file)
   14.               └─base::signalCondition(cnd)
   15.                 ├─base::conditionMessage(cond)
   16.                 └─rlang:::conditionMessage.rlang_error(cond)
   17.                   └─rlang::cnd_message(c)
   18.                     └─rlang:::cnd_message_format(cnd, ...)
   19.                       └─rlang (local) cli_format(glue_escape(lines))
   20.                         └─rlang:::.rlang_cli_format(x, cli::format_error)
   21.                           └─cli::cli_format(x, .envir = emptyenv())
   22.                             └─cli:::fmt(...)
   23.                               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   24.                                 ├─base::do.call(app[[msg$type]], msg$args)
   25.                                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-338", class = NULL)
   26.                                   └─cli:::clii_bullets(app, text, id, class)
   27.                                     └─base::lapply(...)
   28.                                       └─cli (local) FUN(X[[i]], ...)
   29.                                         └─app$text(text[[i]])
   30.                                           └─cli:::clii_text(app, text)
   31.                                             └─app$xtext(text)
   32.                                               └─cli:::clii__xtext(...)
   33.                                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   34.                                                   └─base::lapply(pars, ansi_trimws)
   35.                                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-response_process.R:31:3): Use key that's not enabled for the API (Sheets) ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─gargle (local) expect_recorded_error(...) at test-response_process.R:31:2
    2.   ├─testthat::expect_error(response_process(resp), class = "gargle_error_request_failed") at test-response_process.R:4:2
    3.   │ └─testthat:::expect_condition_matching(...)
    4.   │   └─testthat:::quasi_capture(...)
    5.   │     ├─testthat (local) .capture(...)
    6.   │     │ └─base::withCallingHandlers(...)
    7.   │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8.   └─gargle::response_process(resp)
    9.     └─gargle:::gargle_abort_request_failed(error_message(resp), resp)
   10.       └─gargle:::gargle_abort(...)
   11.         └─cli::cli_abort(...)
   12.           └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   13.             └─rlang:::signal_abort(cnd, .file)
   14.               └─base::signalCondition(cnd)
   15.                 ├─base::conditionMessage(cond)
   16.                 └─rlang:::conditionMessage.rlang_error(cond)
   17.                   └─rlang::cnd_message(c)
   18.                     └─rlang:::cnd_message_format(cnd, ...)
   19.                       └─rlang (local) cli_format(glue_escape(lines))
   20.                         └─rlang:::.rlang_cli_format(x, cli::format_error)
   21.                           └─cli::cli_format(x, .envir = emptyenv())
   22.                             └─cli:::fmt(...)
   23.                               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   24.                                 ├─base::do.call(app[[msg$type]], msg$args)
   25.                                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-360", class = NULL)
   26.                                   └─cli:::clii_bullets(app, text, id, class)
   27.                                     └─base::lapply(...)
   28.                                       └─cli (local) FUN(X[[i]], ...)
   29.                                         └─app$text(text[[i]])
   30.                                           └─cli:::clii_text(app, text)
   31.                                             └─app$xtext(text)
   32.                                               └─cli:::clii__xtext(...)
   33.                                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   34.                                                   └─base::lapply(pars, ansi_trimws)
   35.                                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-response_process.R:38:3): Request with invalid argument (Sheets, bad range) ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─gargle (local) expect_recorded_error(...) at test-response_process.R:38:2
    2.   ├─testthat::expect_error(response_process(resp), class = "gargle_error_request_failed") at test-response_process.R:4:2
    3.   │ └─testthat:::expect_condition_matching(...)
    4.   │   └─testthat:::quasi_capture(...)
    5.   │     ├─testthat (local) .capture(...)
    6.   │     │ └─base::withCallingHandlers(...)
    7.   │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8.   └─gargle::response_process(resp)
    9.     └─gargle:::gargle_abort_request_failed(error_message(resp), resp)
   10.       └─gargle:::gargle_abort(...)
   11.         └─cli::cli_abort(...)
   12.           └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   13.             └─rlang:::signal_abort(cnd, .file)
   14.               └─base::signalCondition(cnd)
   15.                 ├─base::conditionMessage(cond)
   16.                 └─rlang:::conditionMessage.rlang_error(cond)
   17.                   └─rlang::cnd_message(c)
   18.                     └─rlang:::cnd_message_format(cnd, ...)
   19.                       └─rlang (local) cli_format(glue_escape(lines))
   20.                         └─rlang:::.rlang_cli_format(x, cli::format_error)
   21.                           └─cli::cli_format(x, .envir = emptyenv())
   22.                             └─cli:::fmt(...)
   23.                               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   24.                                 ├─base::do.call(app[[msg$type]], msg$args)
   25.                                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-371", class = NULL)
   26.                                   └─cli:::clii_bullets(app, text, id, class)
   27.                                     └─base::lapply(...)
   28.                                       └─cli (local) FUN(X[[i]], ...)
   29.                                         └─app$text(text[[i]])
   30.                                           └─cli:::clii_text(app, text)
   31.                                             └─app$xtext(text)
   32.                                               └─cli:::clii__xtext(...)
   33.                                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   34.                                                   └─base::lapply(pars, ansi_trimws)
   35.                                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-response_process.R:45:3): Request with bad field mask (Sheets) ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─gargle (local) expect_recorded_error(...) at test-response_process.R:45:2
    2.   ├─testthat::expect_error(response_process(resp), class = "gargle_error_request_failed") at test-response_process.R:4:2
    3.   │ └─testthat:::expect_condition_matching(...)
    4.   │   └─testthat:::quasi_capture(...)
    5.   │     ├─testthat (local) .capture(...)
    6.   │     │ └─base::withCallingHandlers(...)
    7.   │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8.   └─gargle::response_process(resp)
    9.     └─gargle:::gargle_abort_request_failed(error_message(resp), resp)
   10.       └─gargle:::gargle_abort(...)
   11.         └─cli::cli_abort(...)
   12.           └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   13.             └─rlang:::signal_abort(cnd, .file)
   14.               └─base::signalCondition(cnd)
   15.                 ├─base::conditionMessage(cond)
   16.                 └─rlang:::conditionMessage.rlang_error(cond)
   17.                   └─rlang::cnd_message(c)
   18.                     └─rlang:::cnd_message_format(cnd, ...)
   19.                       └─rlang (local) cli_format(glue_escape(lines))
   20.                         └─rlang:::.rlang_cli_format(x, cli::format_error)
   21.                           └─cli::cli_format(x, .envir = emptyenv())
   22.                             └─cli:::fmt(...)
   23.                               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   24.                                 ├─base::do.call(app[[msg$type]], msg$args)
   25.                                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-387", class = NULL)
   26.                                   └─cli:::clii_bullets(app, text, id, class)
   27.                                     └─base::lapply(...)
   28.                                       └─cli (local) FUN(X[[i]], ...)
   29.                                         └─app$text(text[[i]])
   30.                                           └─cli:::clii_text(app, text)
   31.                                             └─app$xtext(text)
   32.                                               └─cli:::clii__xtext(...)
   33.                                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   34.                                                   └─base::lapply(pars, ansi_trimws)
   35.                                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-response_process.R:52:3): Request for nonexistent resource (Sheets) ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─gargle (local) expect_recorded_error(...) at test-response_process.R:52:2
    2.   ├─testthat::expect_error(response_process(resp), class = "gargle_error_request_failed") at test-response_process.R:4:2
    3.   │ └─testthat:::expect_condition_matching(...)
    4.   │   └─testthat:::quasi_capture(...)
    5.   │     ├─testthat (local) .capture(...)
    6.   │     │ └─base::withCallingHandlers(...)
    7.   │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8.   └─gargle::response_process(resp)
    9.     └─gargle:::gargle_abort_request_failed(error_message(resp), resp)
   10.       └─gargle:::gargle_abort(...)
   11.         └─cli::cli_abort(...)
   12.           └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   13.             └─rlang:::signal_abort(cnd, .file)
   14.               └─base::signalCondition(cnd)
   15.                 ├─base::conditionMessage(cond)
   16.                 └─rlang:::conditionMessage.rlang_error(cond)
   17.                   └─rlang::cnd_message(c)
   18.                     └─rlang:::cnd_message_format(cnd, ...)
   19.                       └─rlang (local) cli_format(glue_escape(lines))
   20.                         └─rlang:::.rlang_cli_format(x, cli::format_error)
   21.                           └─cli::cli_format(x, .envir = emptyenv())
   22.                             └─cli:::fmt(...)
   23.                               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   24.                                 ├─base::do.call(app[[msg$type]], msg$args)
   25.                                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-398", class = NULL)
   26.                                   └─cli:::clii_bullets(app, text, id, class)
   27.                                     └─base::lapply(...)
   28.                                       └─cli (local) FUN(X[[i]], ...)
   29.                                         └─app$text(text[[i]])
   30.                                           └─cli:::clii_text(app, text)
   31.                                             └─app$xtext(text)
   32.                                               └─cli:::clii__xtext(...)
   33.                                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   34.                                                   └─base::lapply(pars, ansi_trimws)
   35.                                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-response_process.R:59:3): Request with invalid value (tokeninfo, stale token) ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─gargle (local) expect_recorded_error("tokeninfo-stale_400", 400) at test-response_process.R:59:2
    2.   ├─testthat::expect_error(response_process(resp), class = "gargle_error_request_failed") at test-response_process.R:4:2
    3.   │ └─testthat:::expect_condition_matching(...)
    4.   │   └─testthat:::quasi_capture(...)
    5.   │     ├─testthat (local) .capture(...)
    6.   │     │ └─base::withCallingHandlers(...)
    7.   │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8.   └─gargle::response_process(resp)
    9.     └─gargle:::gargle_abort_request_failed(error_message(resp), resp)
   10.       └─gargle:::gargle_abort(...)
   11.         └─cli::cli_abort(...)
   12.           └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   13.             └─rlang:::signal_abort(cnd, .file)
   14.               └─base::signalCondition(cnd)
   15.                 ├─base::conditionMessage(cond)
   16.                 └─rlang:::conditionMessage.rlang_error(cond)
   17.                   └─rlang::cnd_message(c)
   18.                     └─rlang:::cnd_message_format(cnd, ...)
   19.                       └─rlang (local) cli_format(glue_escape(lines))
   20.                         └─rlang:::.rlang_cli_format(x, cli::format_error)
   21.                           └─cli::cli_format(x, .envir = emptyenv())
   22.                             └─cli:::fmt(...)
   23.                               └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   24.                                 ├─base::do.call(app[[msg$type]], msg$args)
   25.                                 └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-408", class = NULL)
   26.                                   └─cli:::clii_bullets(app, text, id, class)
   27.                                     └─base::lapply(...)
   28.                                       └─cli (local) FUN(X[[i]], ...)
   29.                                         └─app$text(text[[i]])
   30.                                           └─cli:::clii_text(app, text)
   31.                                             └─app$xtext(text)
   32.                                               └─cli:::clii__xtext(...)
   33.                                                 └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   34.                                                   └─base::lapply(pars, ansi_trimws)
   35.                                                     └─cli (local) FUN(X[[i]], ...)
  ── Error (test-response_process.R:66:3): Request to bad URL (tokeninfo, HTML content) ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. └─gargle (local) expect_recorded_error("tokeninfo-bad-path_404", 404) at test-response_process.R:66:2
    2.   ├─testthat::expect_error(response_process(resp), class = "gargle_error_request_failed") at test-response_process.R:4:2
    3.   │ └─testthat:::expect_condition_matching(...)
    4.   │   └─testthat:::quasi_capture(...)
    5.   │     ├─testthat (local) .capture(...)
    6.   │     │ └─base::withCallingHandlers(...)
    7.   │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8.   └─gargle::response_process(resp)
    9.     ├─gargle:::gargle_abort_request_failed(error_message(resp), resp)
   10.     │ └─gargle:::gargle_abort(...)
   11.     │   └─cli::cli_abort(...)
   12.     │     └─cli:::vcapply(message, format_inline, .envir = .envir)
   13.     │       └─base::vapply(X, FUN, FUN.VALUE = character(1), ..., USE.NAMES = USE.NAMES)
   14.     └─gargle (local) error_message(resp)
   15.       └─gargle::response_as_json(resp)
   16.         └─gargle:::check_for_json(resp)
   17.           └─gargle:::gargle_abort_request_failed(...)
   18.             └─gargle:::gargle_abort(...)
   19.               └─cli::cli_abort(...)
   20.                 └─rlang::abort(message, ..., call = call, use_cli_format = TRUE)
   21.                   └─rlang:::signal_abort(cnd, .file)
   22.                     └─base::signalCondition(cnd)
   23.                       ├─base::conditionMessage(cond)
   24.                       └─rlang:::conditionMessage.rlang_error(cond)
   25.                         └─rlang::cnd_message(c)
   26.                           └─rlang:::cnd_message_format(cnd, ...)
   27.                             └─rlang (local) cli_format(glue_escape(lines))
   28.                               └─rlang:::.rlang_cli_format(x, cli::format_error)
   29.                                 └─cli::cli_format(x, .envir = emptyenv())
   30.                                   └─cli:::fmt(...)
   31.                                     └─cli:::cli__fmt(rec, collapse, strip_newline, app)
   32.                                       ├─base::do.call(app[[msg$type]], msg$args)
   33.                                       └─cli (local) `<fn>`(text = `<named list>`, id = "cli-24140-424", class = NULL)
   34.                                         └─cli:::clii_bullets(app, text, id, class)
   35.                                           └─base::lapply(...)
   36.                                             └─cli (local) FUN(X[[i]], ...)
   37.                                               └─app$text(text[[i]])
   38.                                                 └─cli:::clii_text(app, text)
   39.                                                   └─app$xtext(text)
   40.                                                     └─cli:::clii__xtext(...)
   41.                                                       └─cli::ansi_strwrap(text, exdent = exdent, width = app$get_width(extra = padding))
   42.                                                         └─base::lapply(pars, ansi_trimws)
   43.                                                           └─cli (local) FUN(X[[i]], ...)
  ── Error (test-utils-ui.R:19:3): gargle_verbosity() accomodates people using the old option ──
  `out <- gargle_verbosity()` threw an unexpected error.
  Message: number of characters is not computable in "bytes" encoding, element 1
  Class:   simpleError/error/condition
  ── Error (test-utils-ui.R:22:3): gargle_verbosity() accomodates people using the old option ──
  Error in `eval_bare(expr, quo_get_env(quo))`: object 'out' not found
  Backtrace:
      ▆
   1. └─testthat::expect_equal(out, "debug") at test-utils-ui.R:22:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  
  [ FAIL 24 | WARN 0 | SKIP 13 | PASS 173 ]
  Error: Test failures
  Execution halted