test_that("Packages that use options pass R CMD check", { skip_on_os(c("windows", "solaris")) skip_on_covr() skip_if_not( "options" %in% rownames(installed.packages()), paste0( "Skipping R CMD check integration tests as package 'options' ", "is not installed and would be unavailable to satisfy dependency ", "requirements." ) ) results <- rcmdcheck::rcmdcheck( paths$options.example, build_args = "--no-manual", args = "--no-manual", env = reset_envvars(), quiet = TRUE ) expect_length(results$errors, 0) expect_length(results$warnings, 0) expect_length(results$notes, 0) })