Skip to content

Commit 5496b84

Browse files
authored
Merge pull request #439 from cmu-delphi/hotfix
fix: update recipes internal function name
2 parents 7a103fa + d0ca7e2 commit 5496b84

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: epipredict
22
Title: Basic epidemiology forecasting methods
3-
Version: 0.1.8
3+
Version: 0.1.9
44
Authors@R: c(
55
person("Daniel J.", "McDonald", , "[email protected]", role = c("aut", "cre")),
66
person("Ryan", "Tibshirani", , "[email protected]", role = "aut"),

NEWS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Pre-1.0.0 numbering scheme: 0.x will indicate releases, while 0.0.x will indicat
88

99
- Moved example datasets from being hosted in the package to being loaded
1010
from the `epidatasets` package. The datasets can no longer be loaded with
11-
`data(<dataset name>)`, but can be accessed with
12-
`data(<dataset name>, package = "epidatasets")`, `epidatasets::<dataset name>`
11+
`data(<dataset name>)`, but can be accessed with
12+
`data(<dataset name>, package = "epidatasets")`, `epidatasets::<dataset name>`
1313
or, after loading the package, the name of the dataset alone (#382).
1414

1515
## Improvements
@@ -27,6 +27,7 @@ Pre-1.0.0 numbering scheme: 0.x will indicate releases, while 0.0.x will indicat
2727
- dist_quantiles can have all `NA` values without causing unrelated errors
2828
- adjust default quantiles throughout so that they match.
2929
- force `layer_residual_quantiles()` to always include `0.5`.
30+
- Rename `recipes:::check_training_set()` to `recipes:::validate_training_data()`, as it changed in recipes 1.1.0.
3031

3132
# epipredict 0.1
3233

R/epi_recipe.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ prep.epi_recipe <- function(
448448
"!" = "to avoid addtional warning messages."
449449
))
450450
}
451-
training <- recipes:::check_training_set(training, x, fresh)
451+
training <- recipes:::validate_training_data(training, x, fresh)
452452
training <- epi_check_training_set(training, x)
453453
training <- relocate(training, all_of(key_colnames(training)))
454454
tr_data <- recipes:::train_info(training)

0 commit comments

Comments
 (0)