From fb6e07019d0a6383c748fbb2fe814b63e6dff2df Mon Sep 17 00:00:00 2001 From: Dmitry Shemetov Date: Wed, 12 Feb 2025 14:47:32 -0800 Subject: [PATCH 1/2] fix: update recipes internal function name --- R/epi_recipe.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From d0ca7e24459266e60ba9a3de9613e8850a59f653 Mon Sep 17 00:00:00 2001 From: Dmitry Shemetov Date: Wed, 12 Feb 2025 14:48:48 -0800 Subject: [PATCH 2/2] doc: bump version --- DESCRIPTION | 2 +- NEWS.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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