Skip to content

Commit da4b1ac

Browse files
authored
Merge pull request #18 from kenmawer/km-issue_22_tests
Updated DESCRIPTION
2 parents dd25021 + 20f8bac commit da4b1ac

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

DESCRIPTION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ Imports:
1616
dplyr,
1717
glue,
1818
magrittr,
19+
parsnip,
1920
purrr,
2021
recipes,
2122
rlang,
2223
stats,
2324
tibble,
2425
tidyr,
2526
tidyselect,
26-
tensr
27+
tensr,
28+
workflows
2729
Suggests:
2830
covidcast,
2931
data.table,

tests/testthat/test-epi_shift_internal.R

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

46
# Random generated dataset
57
set.seed(100)
@@ -10,10 +12,10 @@ x <- tibble(geo_value = rep("nowhere",200),
1012
as_epi_df()
1113

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

1921
# Tests

0 commit comments

Comments
 (0)