codecov update

This commit is contained in:
dr. M.S. (Matthijs) Berends 2019-07-11 16:08:56 +02:00
parent c652c6913f
commit 7bd29cb8ef
2 changed files with 12 additions and 11 deletions

View File

@ -1,6 +1,6 @@
codecov: codecov:
notify: notify:
require_ci_to_pass: no require_ci_to_pass: no # allow fail
ci: ci:
- !appveyor # ignore CI builds by AppVeyor - !appveyor # ignore CI builds by AppVeyor
@ -18,3 +18,4 @@ coverage:
ignore: ignore:
- "R/atc_online.R" - "R/atc_online.R"
- "R/mo_source.R" - "R/mo_source.R"
- "R/resistance_predict.R"

View File

@ -19,18 +19,18 @@
# Visit our website for more info: https://msberends.gitlab.io/AMR. # # Visit our website for more info: https://msberends.gitlab.io/AMR. #
# ==================================================================== # # ==================================================================== #
context("portion.R") context("resistance_predict.R")
test_that("prediction of rsi works", { test_that("prediction of rsi works", {
# AMX_R <- septic_patients %>% AMX_R <- septic_patients %>%
# filter(mo == "B_ESCHR_COL") %>% filter(mo == "B_ESCHR_COL") %>%
# rsi_predict(col_ab = "AMX", rsi_predict(col_ab = "AMX",
# col_date = "date", col_date = "date",
# minimum = 10, minimum = 10,
# info = TRUE) %>% info = TRUE) %>%
# pull("value") pull("value")
# # AMX resistance will increase according to data set `septic_patients` # AMX resistance will increase according to data set `septic_patients`
# expect_true(AMX_R[3] < AMX_R[20]) expect_true(AMX_R[3] < AMX_R[20])
x <- resistance_predict(septic_patients, col_ab = "AMX", year_min = 2010) x <- resistance_predict(septic_patients, col_ab = "AMX", year_min = 2010)
plot(x) plot(x)