diff --git a/DESCRIPTION b/DESCRIPTION index e45633b0..593f1038 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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", , "daniel@stat.ubc.ca", role = c("aut", "cre")), person("Ryan", "Tibshirani", , "ryantibs@cmu.edu", role = "aut"), diff --git a/NEWS.md b/NEWS.md index 633086cb..6b98d4d5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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()`, but can be accessed with - `data(, package = "epidatasets")`, `epidatasets::` + `data()`, but can be accessed with + `data(, package = "epidatasets")`, `epidatasets::` or, after loading the package, the name of the dataset alone (#382). ## Improvements @@ -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 diff --git a/R/epi_recipe.R b/R/epi_recipe.R index c82ac167..d1d183cc 100644 --- a/R/epi_recipe.R +++ b/R/epi_recipe.R @@ -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)