Running 'testthat.R' [8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(frictionless)
  > 
  > test_check("frictionless")
  [ FAIL 5 | WARN 0 | SKIP 34 | PASS 185 ]
  
  ══ Skipped tests (34) ══════════════════════════════════════════════════════════
  • On CRAN (34): 'test-add_resource.R:88:3', 'test-add_resource.R:230:3',
    'test-check_schema.R:2:3', 'test-read_package.R:23:3',
    'test-read_package.R:69:3', 'test-read_resource.R:2:3',
    'test-read_resource.R:24:3', 'test-read_resource.R:183:3',
    'test-read_resource.R:194:3', 'test-read_resource.R:208:3',
    'test-read_resource.R:263:3', 'test-read_resource.R:316:3',
    'test-read_resource.R:346:3', 'test-read_resource.R:361:3',
    'test-read_resource.R:450:3', 'test-read_resource.R:462:3',
    'test-remove_resource.R:2:3', 'test-remove_resource.R:19:3',
    'test-remove_resource.R:32:3', 'test-resources.R:2:3',
    'test-write_package.R:2:3', 'test-write_package.R:44:3',
    'test-write_package.R:60:3', 'test-write_package.R:86:3',
    'test-write_package.R:115:3', 'test-write_package.R:141:3',
    'test-write_package.R:164:3', 'test-write_package.R:185:3',
    'test-write_package.R:201:3', 'test-write_package.R:215:3',
    'test-write_package.R:234:3', 'test-write_package.R:251:3',
    'test-write_package.R:266:3', 'test-write_package.R:296:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-add_resource.R:8:3'): add_resource() returns a valid Data Package ──
  Error: stringi package required for encoding operations
  Backtrace:
       ▆
    1. ├─testthat::expect_true(check_package(add_resource(p, "new", df_csv))) at test-add_resource.R:8:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─frictionless:::check_package(add_resource(p, "new", df_csv))
    5. │ └─assertthat::assert_that(...)
    6. │   └─assertthat::see_if(..., env = env, msg = msg)
    7. │     ├─base::tryCatch(...)
    8. │     │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9. │     │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10. │     │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   11. │     └─base::eval(assertion, env)
   12. │       └─base::eval(assertion, env)
   13. └─frictionless::add_resource(p, "new", df_csv)
   14.   └─readr::guess_encoding(last_file, n_max = 1000)
  ── Error ('test-add_resource.R:144:3'): add_resource() returns error on mismatching schema and data ──
  Error: stringi package required for encoding operations
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-add_resource.R:144:3
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─frictionless::add_resource(p, "new", df_csv, schema_invalid)
   8.   └─readr::guess_encoding(last_file, n_max = 1000)
  ── Error ('test-add_resource.R:175:3'): add_resource() adds resource ───────────
  Error: stringi package required for encoding operations
  Backtrace:
      ▆
   1. └─frictionless::add_resource(p, "new_csv", df_csv) at test-add_resource.R:175:3
   2.   └─readr::guess_encoding(last_file, n_max = 1000)
  ── Error ('test-add_resource.R:273:3'): add_resource() can add resource from CSV file with other delimiter,
             readable by read_resource() ──
  Error: stringi package required for encoding operations
  Backtrace:
      ▆
   1. └─frictionless::add_resource(p, "df", test_path("data/df.csv")) at test-add_resource.R:273:3
   2.   └─readr::guess_encoding(last_file, n_max = 1000)
  ── Error ('test-add_resource.R:290:3'): add_resource() sets correct properties for CSV resources ──
  Error: stringi package required for encoding operations
  Backtrace:
      ▆
   1. └─frictionless::add_resource(p, "deployments", path) at test-add_resource.R:290:3
   2.   └─readr::guess_encoding(last_file, n_max = 1000)
  
  [ FAIL 5 | WARN 0 | SKIP 34 | PASS 185 ]
  Error: Test failures
  Execution halted