diff --git a/ci.R b/ci.R index d67323be7..d900b3f50 100644 --- a/ci.R +++ b/ci.R @@ -21,7 +21,7 @@ install_if_needed <- function(package_to_install) { if(length(package_path) == 0){ # Only install if not present - install.packages(package_to_install) + install.packages(package_to_install, repos = "https://cran.rstudio.com/") } } @@ -32,6 +32,7 @@ ci_setup <- function() { ci_check <- function() { install_if_needed("devtools") + install_if_needed("roxygen2") devtools::check() } diff --git a/tests/testthat/test-freq.R b/tests/testthat/test-freq.R index 9cc0ab25b..0611d0672 100755 --- a/tests/testthat/test-freq.R +++ b/tests/testthat/test-freq.R @@ -47,6 +47,8 @@ test_that("frequency table works", { expect_output(suppressWarnings(print(freq(microorganisms$fullname)))) # mo expect_output(print(freq(septic_patients$mo))) + # rsi + expect_output(print(freq(septic_patients$amox))) # integer expect_output(print(freq(septic_patients$age))) # date