Running ‘testthat.R’ [10s/208s]
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#13) ---------------------
  Couldn't connect to server
  1: readr::read_lines(m) at testthat/test-download.R:13
  2: datasource(file, skip = skip)
  3: datasource_connection(file, skip, comment)
  4: datasource_raw(read_connection(path), skip, comment = comment)
  5: new_datasource("raw", text, skip = skip, comment = comment)
  6: structure(list(x, skip = skip, comment = comment, ...), class = c(paste0("source_", 
         type), "source"))
  7: read_connection(path)
  8: open(con, "rb")
  9: open.connection(con, "rb")
  
  2. Failure: Can download Charles Dickens' Christmas Carol and Jane Austen's Persuasion (@test-download.R#22) 
  sum(books$gutenberg_id == 46) is not strictly more than 3000. Difference: -3e+03
  
  
  3. Failure: Can download Charles Dickens' Christmas Carol and Jane Austen's Persuasion (@test-download.R#23) 
  sum(books$gutenberg_id == 105) is not strictly more than 3000. Difference: -3e+03
  
  
  4. Failure: Can download Charles Dickens' Christmas Carol and Jane Austen's Persuasion (@test-download.R#31) 
  sum(str_detect(books$text, "Scrooge")) is not strictly more than 300. Difference: -300
  
  
  5. Failure: Can download Charles Dickens' Christmas Carol and Jane Austen's Persuasion (@test-download.R#32) 
  sum(str_detect(books$text, "Anne")) is not strictly more than 300. Difference: -300
  
  
  6. Failure: Can download books from a data frame with gutenberg_id column (@test-download.R#43) 
  nrow(d) is not strictly more than 10. Difference: -10
  
  
  7. Failure: We can download a file that only has a -8 version (@test-download.R#50) 
  sum(str_detect(d$text, "Aristotle")) is not strictly more than 50. Difference: -50
  
  
  8. Failure: read_zip_url can download and read a zip file (@test-utils.R#7) ----
  any(z == "Congress shall make no law respecting an establishment of religion,") isn't true.
  
  
  testthat results ================================================================
  OK: 50 SKIPPED: 0 FAILED: 8
  1. Error: gutenberg_get_mirror works (@test-download.R#13) 
  2. Failure: Can download Charles Dickens' Christmas Carol and Jane Austen's Persuasion (@test-download.R#22) 
  3. Failure: Can download Charles Dickens' Christmas Carol and Jane Austen's Persuasion (@test-download.R#23) 
  4. Failure: Can download Charles Dickens' Christmas Carol and Jane Austen's Persuasion (@test-download.R#31) 
  5. Failure: Can download Charles Dickens' Christmas Carol and Jane Austen's Persuasion (@test-download.R#32) 
  6. Failure: Can download books from a data frame with gutenberg_id column (@test-download.R#43) 
  7. Failure: We can download a file that only has a -8 version (@test-download.R#50) 
  8. Failure: read_zip_url can download and read a zip file (@test-utils.R#7) 
  
  Error: testthat unit tests failed
  Execution halted