CRAN Package Check Results for Package gutenbergr

Last updated on 2020-08-04 09:48:28 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.5 7.21 125.85 133.06 OK
r-devel-linux-x86_64-debian-gcc 0.1.5 5.89 88.21 94.10 OK
r-devel-linux-x86_64-fedora-clang 0.1.5 158.97 NOTE
r-devel-linux-x86_64-fedora-gcc 0.1.5 148.42 NOTE
r-devel-windows-ix86+x86_64 0.1.5 23.00 131.00 154.00 ERROR
r-patched-linux-x86_64 0.1.5 7.16 118.98 126.14 OK
r-patched-solaris-x86 0.1.5 206.80 NOTE
r-release-linux-x86_64 0.1.5 6.88 119.85 126.73 OK
r-release-macos-x86_64 0.1.5 NOTE
r-release-windows-ix86+x86_64 0.1.5 22.00 117.00 139.00 OK
r-oldrel-macos-x86_64 0.1.5 NOTE
r-oldrel-windows-ix86+x86_64 0.1.5 14.00 112.00 126.00 OK

Check Details

Version: 0.1.5
Check: data for non-ASCII characters
Result: NOTE
     Note: found 13617 marked UTF-8 strings
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64

Version: 0.1.5
Check: tests
Result: ERROR
     Running 'testthat.R' [40s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(gutenbergr)
     >
     > test_check("gutenbergr")
     -- 1. Error: Can download Charles Dickens' Christmas Carol and Jane Austen's Per
     Problem with `mutate()` input `gutenberg_id`.
     x Input `gutenberg_id` can't be recycled to size 0.
     i Input `gutenberg_id` is `as.integer(gutenberg_id)`.
     i Input `gutenberg_id` must be size 0 or 1, not 2.
     Backtrace:
     1. gutenbergr::gutenberg_download(...)
     2. purrr::map(., try_download)
     2. purrr::discard(., is.null)
     2. purrr::map_df(., ~tibble(text = .), .id = "gutenberg_id")
     10. dplyr::mutate(., gutenberg_id = as.integer(gutenberg_id))
     12. dplyr:::mutate_cols(.data, ...)
     13. base::tryCatch(...)
     14. base:::tryCatchList(expr, classes, parentenv, handlers)
     15. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     16. value[[3L]](cond)
     17. dplyr:::stop_mutate_recycle_incompatible_size(e, index = i, dots = dots)
     18. dplyr:::stop_dplyr(...)
    
     -- 2. Failure: Can download books from a data frame with gutenberg_id column (@t
     nrow(d) is not strictly more than 10. Difference: -10
    
     -- 3. Failure: We can download a file that only has a -8 version (@test-download
     sum(str_detect(d$text, "Aristotle")) is not strictly more than 50. Difference: -50
    
     -- 4. Error: Trying to download a non-existent book raises a warning (@test-down
     Problem with `mutate()` input `gutenberg_id`.
     x Input `gutenberg_id` can't be recycled to size 0.
     i Input `gutenberg_id` is `as.integer(gutenberg_id)`.
     i Input `gutenberg_id` must be size 0 or 1, not 2.
     Backtrace:
     1. testthat::expect_warning(...)
     6. gutenbergr::gutenberg_download(c(5, 1e+06))
     3. purrr::map(., try_download)
     3. purrr::discard(., is.null)
     3. purrr::map_df(., ~tibble(text = .), .id = "gutenberg_id")
     11. dplyr::mutate(., gutenberg_id = as.integer(gutenberg_id))
     17. dplyr:::mutate_cols(.data, ...)
     18. base::tryCatch(...)
     19. base:::tryCatchList(expr, classes, parentenv, handlers)
     20. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     21. value[[3L]](cond)
     22. dplyr:::stop_mutate_recycle_incompatible_size(e, index = i, dots = dots)
     23. dplyr:::stop_dplyr(...)
    
     == testthat results ===========================================================
     [ OK: 33 | SKIPPED: 1 | WARNINGS: 8 | FAILED: 4 ]
     1. Error: Can download Charles Dickens' Christmas Carol and Jane Austen's Persuasion (@test-download.R#19)
     2. Failure: Can download books from a data frame with gutenberg_id column (@test-download.R#43)
     3. Failure: We can download a file that only has a -8 version (@test-download.R#50)
     4. Error: Trying to download a non-existent book raises a warning (@test-download.R#55)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 0.1.5
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
    --- re-building 'intro.Rmd' using rmarkdown
    
    Attaching package: 'dplyr'
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    Warning: `filter_()` is deprecated as of dplyr 0.7.0.
    Please use `filter()` instead.
    See vignette('programming') for more help
    This warning is displayed once every 8 hours.
    Call `lifecycle::last_warnings()` to see where this warning was generated.
    Warning: `distinct_()` is deprecated as of dplyr 0.7.0.
    Please use `distinct()` instead.
    See vignette('programming') for more help
    This warning is displayed once every 8 hours.
    Call `lifecycle::last_warnings()` to see where this warning was generated.
    Determining mirror for Project Gutenberg from http://www.gutenberg.org/robot/harvest
    Using mirror https://cand.pglaf.org
    Warning in .f(.x[[i]], ...) :
     Could not download a book at https://cand.pglaf.org/7/6/768/768.zip
    Warning: Unknown or uninitialised column: `text`.
    Warning in .f(.x[[i]], ...) :
     Could not download a book at https://cand.pglaf.org/7/6/768/768.zip
    Warning in .f(.x[[i]], ...) :
     Could not download a book at https://cand.pglaf.org/1/2/6/1260/1260.zip
    Quitting from lines 78-81 (intro.Rmd)
    Error: processing vignette 'intro.Rmd' failed with diagnostics:
    Problem with `mutate()` input `gutenberg_id`.
    x Input `gutenberg_id` can't be recycled to size 0.
    i Input `gutenberg_id` is `as.integer(gutenberg_id)`.
    i Input `gutenberg_id` must be size 0 or 1, not 2.
    --- failed re-building 'intro.Rmd'
    
    SUMMARY: processing the following file failed:
     'intro.Rmd'
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-windows-ix86+x86_64