Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(stringr)
  > 
  > test_check("stringr")
  ── 1. Failure: view works (@test-view.R#6)  ────────────────────────────────────
  `str_view(x, "[aeiou]")` threw an error.
  Message: there is no package called 'htmlwidgets'
  Class:   simpleError/error/condition
  
  ── 2. Failure: view works (@test-view.R#7)  ────────────────────────────────────
  `str_view_all(x, "d|e")` threw an error.
  Message: there is no package called 'htmlwidgets'
  Class:   simpleError/error/condition
  
  ── 3. Error: match argument controls what is shown (@test-view.R#11)  ──────────
  there is no package called 'htmlwidgets'
  1: str_view(x, "d|e") at testthat/test-view.R:11
  2: str_view_widget(string)
  3: htmlwidgets::sizingPolicy
  4: getExportedValue(pkg, name)
  5: asNamespace(ns)
  6: getNamespace(ns)
  7: tryCatch(loadNamespace(name), error = function(e) stop(e))
  8: tryCatchList(expr, classes, parentenv, handlers)
  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: value[[3L]](cond)
  
  ── 4. Error: view_all shows all matches (@test-view.R#22)  ─────────────────────
  there is no package called 'htmlwidgets'
  1: str_view_all(x, "d|e", match = TRUE) at testthat/test-view.R:22
  2: str_view_widget(string)
  3: htmlwidgets::sizingPolicy
  4: getExportedValue(pkg, name)
  5: asNamespace(ns)
  6: getNamespace(ns)
  7: tryCatch(loadNamespace(name), error = function(e) stop(e))
  8: tryCatchList(expr, classes, parentenv, handlers)
  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 214 SKIPPED: 0 FAILED: 4
  1. Failure: view works (@test-view.R#6) 
  2. Failure: view works (@test-view.R#7) 
  3. Error: match argument controls what is shown (@test-view.R#11) 
  4. Error: view_all shows all matches (@test-view.R#22) 
  
  Error: testthat unit tests failed
  Execution halted