Running 'testthat.R' [10s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(gutenbergr)
  > 
  > test_check("gutenbergr")
  -- 1. Error: gutenberg_get_mirror works (@test-download.R#8)  ------------------
  HTTP error 403.
  1: gutenberg_get_mirror() at testthat/test-download.R:8
  2: readr::read_lines(wget_url)
  3: datasource(file, skip = skip)
  4: datasource_connection(file, skip, comment)
  5: datasource_raw(read_connection(path), skip, comment = comment)
  6: new_datasource("raw", text, skip = skip, comment = comment)
  7: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", 
         type), "source"))
  8: read_connection(path)
  9: open(con, "rb")
  10: open.connection(con, "rb")
  
  -- 2. Error: Can download Charles Dickens' Christmas Carol and Jane Austen's Per
  HTTP error 403.
  1: gutenberg_download(c(46, 105), meta_fields = c("title", "author")) at testthat/test-download.R:19
  2: gutenberg_get_mirror(verbose = verbose)
  3: readr::read_lines(wget_url)
  4: datasource(file, skip = skip)
  5: datasource_connection(file, skip, comment)
  6: datasource_raw(read_connection(path), skip, comment = comment)
  7: new_datasource("raw", text, skip = skip, comment = comment)
  8: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", 
         type), "source"))
  9: read_connection(path)
  10: open(con, "rb")
  11: open.connection(con, "rb")
  
  == testthat results  ===========================================================
  OK: 36 SKIPPED: 1 FAILED: 2
  1. Error: gutenberg_get_mirror works (@test-download.R#8) 
  2. Error: Can download Charles Dickens' Christmas Carol and Jane Austen's Persuasion (@test-download.R#19) 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: closing unused connection 4 (http://www.gutenberg.org/robot/harvest?filetypes[]=txt) 
  2: In .Call(map_impl, environment(), ".x", ".f", "logical") :
    closing unused connection 3 (http://www.gutenberg.org/robot/harvest?filetypes[]=txt)
  Execution halted