Skip to content

fix: update recipes internal function name #439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: epipredict
Title: Basic epidemiology forecasting methods
Version: 0.1.8
Version: 0.1.9
Authors@R: c(
person("Daniel J.", "McDonald", , "[email protected]", role = c("aut", "cre")),
person("Ryan", "Tibshirani", , "[email protected]", role = "aut"),
Expand Down
5 changes: 3 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Pre-1.0.0 numbering scheme: 0.x will indicate releases, while 0.0.x will indicat

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

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

# epipredict 0.1

Expand Down
2 changes: 1 addition & 1 deletion R/epi_recipe.R
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ prep.epi_recipe <- function(
"!" = "to avoid addtional warning messages."
))
}
training <- recipes:::check_training_set(training, x, fresh)
training <- recipes:::validate_training_data(training, x, fresh)
training <- epi_check_training_set(training, x)
training <- relocate(training, all_of(key_colnames(training)))
tr_data <- recipes:::train_info(training)
Expand Down
Loading