Running ‘testthat.R’ [14s/21s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(yamlet)
  
  Attaching package: 'yamlet'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("yamlet")
   'dvec' int [1:4] 0 1 0 1
   - attr(*, "label")= chr "sex"
   - attr(*, "guide")=List of 2
    ..$ female: int 0
    ..$ male  : int 1
   'dvec' int [1:4] 0 1 0 1
   - attr(*, "label")= chr "sex"
   - attr(*, "guide")=List of 2
    ..$ female: int 0
    ..$ male  : int 1
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 302 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-yamlet.R:1144:3): modify() does not search for assignment targets beyond data scope ──
  Error in `nchar(xs)`: number of characters is not computable in "bytes" encoding, element 1
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(x %<>% modify(time, SORT = .data$sort)) at test-yamlet.R:1144:2
    2. │ └─base::withCallingHandlers(...)
    3. ├─x %<>% modify(time, SORT = .data$sort)
    4. ├─yamlet::modify(., time, SORT = .data$sort)
    5. └─yamlet:::modify.default(., time, SORT = .data$sort)
    6.   └─base::tryCatch(...)
    7.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    8.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    9.         └─value[[3L]](cond)
   10.           └─base::warning(var, ": ", e)
   11.             └─base::.makeMessage(..., domain = domain)
   12.               └─base::lapply(list(...), as.character)
   13.                 ├─base (local) FUN(X[[i]], ...)
   14.                 └─rlang:::as.character.rlang_error(X[[i]], ...)
   15.                   ├─base::paste0(cnd_message(x, prefix = TRUE), "\n")
   16.                   └─rlang::cnd_message(x, prefix = TRUE)
   17.                     └─rlang:::cnd_message_format_prefixed(cnd, ..., parent = FALSE)
   18.                       └─rlang:::cnd_message_format(cnd, ..., alert = alert)
   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-2553110-47", 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]], ...)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 302 ]
  Error: Test failures
  Execution halted