Nothing
This package includes both unit tests (with mocked data) and integration tests (against the real Project Gutenberg API).
devtools::test()
Sys.setenv(RUN_INTEGRATION_TESTS = "true")
testthat::test_local(filter = "integration")
Sys.setenv(RUN_INTEGRATION_TESTS = "true")
devtools::test()
If integration tests fail:
When adding new integration tests:
skip_if_not_integration() at the startskip_on_cran() to avoid CRAN submission issuesskip_if_offline() for network dependencyuse_cache = FALSE for clean teststest-integration-*.R patternExample:
test_that("new feature works with real API", {
skip_if_not_integration()
skip_on_cran()
skip_if_offline()
result <- gutenberg_download(1, use_cache = FALSE)
# Your assertions here
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.