mirror of
https://github.com/msberends/AMR.git
synced 2025-01-24 20:24:33 +01:00
roxygen2 dep
This commit is contained in:
parent
01323283c1
commit
48f097c5b2
3
ci.R
3
ci.R
@ -21,7 +21,7 @@ install_if_needed <- function(package_to_install) {
|
|||||||
|
|
||||||
if(length(package_path) == 0){
|
if(length(package_path) == 0){
|
||||||
# Only install if not present
|
# 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() {
|
ci_check <- function() {
|
||||||
install_if_needed("devtools")
|
install_if_needed("devtools")
|
||||||
|
install_if_needed("roxygen2")
|
||||||
devtools::check()
|
devtools::check()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,6 +47,8 @@ test_that("frequency table works", {
|
|||||||
expect_output(suppressWarnings(print(freq(microorganisms$fullname))))
|
expect_output(suppressWarnings(print(freq(microorganisms$fullname))))
|
||||||
# mo
|
# mo
|
||||||
expect_output(print(freq(septic_patients$mo)))
|
expect_output(print(freq(septic_patients$mo)))
|
||||||
|
# rsi
|
||||||
|
expect_output(print(freq(septic_patients$amox)))
|
||||||
# integer
|
# integer
|
||||||
expect_output(print(freq(septic_patients$age)))
|
expect_output(print(freq(septic_patients$age)))
|
||||||
# date
|
# date
|
||||||
|
Loading…
Reference in New Issue
Block a user