Running ‘testthat.R’ [3s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(gutenbergr)
  > 
  > test_check("gutenbergr")
  ── 1. Error: Can download books from a data frame with gutenberg_id column  ────
  there is no package called 'tidyr'
  Backtrace:
    1. gutenbergr::gutenberg_works(title == "The United States Constitution")
    2. dplyr::select(., gutenberg_id, language)
    2. dplyr::mutate(., language = stringr::str_split(language, "/"))
    9. tidyr::unnest(., language)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15. base:::withOneRestart(expr, restarts[[1L]])
   16. base:::doWithOneRestart(return(expr), restart)
  
  ── 2. Error: gutenberg_works does appropriate filtering by default (@test-metada
  there is no package called 'tidyr'
  Backtrace:
    1. gutenbergr::gutenberg_works()
    2. dplyr::select(., gutenberg_id, language)
    2. dplyr::mutate(., language = stringr::str_split(language, "/"))
    9. tidyr::unnest(., language)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15. base:::withOneRestart(expr, restarts[[1L]])
   16. base:::doWithOneRestart(return(expr), restart)
  
  ── 3. Error: gutenberg_works takes filtering conditions (@test-metadata.R#15)  ─
  there is no package called 'tidyr'
  Backtrace:
    1. gutenbergr::gutenberg_works(author == "Shakespeare, William")
    2. dplyr::select(., gutenberg_id, language)
    2. dplyr::mutate(., language = stringr::str_split(language, "/"))
    9. tidyr::unnest(., language)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15. base:::withOneRestart(expr, restarts[[1L]])
   16. base:::doWithOneRestart(return(expr), restart)
  
  ── 4. Error: gutenberg_works does appropriate filtering by language (@test-metad
  there is no package called 'tidyr'
  Backtrace:
    1. gutenbergr::gutenberg_works(languages = "de")
    2. dplyr::select(., gutenberg_id, language)
    2. dplyr::mutate(., language = stringr::str_split(language, "/"))
    9. tidyr::unnest(., language)
   10. base::getExportedValue(pkg, name)
   11. base::asNamespace(ns)
   12. base::getNamespace(ns)
   13. base::loadNamespace(name)
   14. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15. base:::withOneRestart(expr, restarts[[1L]])
   16. base:::doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 29 | SKIPPED: 1 | WARNINGS: 1 | FAILED: 4 ]
  1. Error: Can download books from a data frame with gutenberg_id column 
  2. Error: gutenberg_works does appropriate filtering by default (@test-metadata.R#6) 
  3. Error: gutenberg_works takes filtering conditions (@test-metadata.R#15) 
  4. Error: gutenberg_works does appropriate filtering by language (@test-metadata.R#22) 
  
  Error: testthat unit tests failed
  Execution halted