roxygen2 dep

This commit is contained in:
dr. M.S. (Matthijs) Berends 2018-12-30 09:31:54 +01:00
parent 01323283c1
commit 48f097c5b2
2 changed files with 4 additions and 1 deletions

3
ci.R
View File

@ -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()
}

View File

@ -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