Skip to content

Commit 0f4f6fe

Browse files
committed
Changed format as to use :: rather than load packages.
1 parent bf141f4 commit 0f4f6fe

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/testthat/test-epi_shift_internal.R

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
library(dplyr)
22
library(epiprocess)
3-
library(parsnip)
4-
library(workflows)
53

64
# Random generated dataset
75
set.seed(100)
@@ -12,10 +10,10 @@ x <- tibble(geo_value = rep("nowhere",200),
1210
as_epi_df()
1311

1412
slm_fit <- function(recipe, data = x) {
15-
workflow() %>%
16-
add_recipe(recipe) %>%
17-
add_model(linear_reg()) %>%
18-
fit(data = data)
13+
workflows::workflow() %>%
14+
workflows::add_recipe(recipe) %>%
15+
workflows::add_model(parsnip::linear_reg()) %>%
16+
parsnip::fit(data = data)
1917
}
2018

2119
# Tests

0 commit comments

Comments
 (0)