-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #377 from cmu-delphi/363-no-drop-epiwf-class
fit() no longer drops the epi_workflow class
- Loading branch information
Showing
10 changed files
with
103 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: epipredict | ||
Title: Basic epidemiology forecasting methods | ||
Version: 0.0.22 | ||
Version: 0.0.23 | ||
Authors@R: c( | ||
person("Daniel", "McDonald", , "[email protected]", role = c("aut", "cre")), | ||
person("Ryan", "Tibshirani", , "[email protected]", role = "aut"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
## usethis namespace: start | ||
#' @importFrom tibble as_tibble | ||
#' @importFrom rlang := !! %||% as_function global_env set_names !!! | ||
#' is_logical is_true inject enquo enquos expr sym arg_match | ||
#' @importFrom rlang := !! %||% as_function global_env set_names !!! caller_arg | ||
#' @importFrom rlang is_logical is_true inject enquo enquos expr sym arg_match | ||
#' @importFrom stats poly predict lm residuals quantile | ||
#' @importFrom dplyr arrange across all_of any_of bind_cols bind_rows group_by | ||
#' summarize filter mutate select left_join rename ungroup full_join | ||
#' relocate summarise everything | ||
#' @importFrom dplyr summarize filter mutate select left_join rename ungroup | ||
#' @importFrom dplyr full_join relocate summarise everything | ||
#' @importFrom cli cli_abort cli_warn | ||
#' @importFrom checkmate assert assert_character assert_int assert_scalar | ||
#' assert_logical assert_numeric assert_number assert_integer | ||
#' assert_integerish assert_date assert_function assert_class | ||
#' @importFrom checkmate assert_logical assert_numeric assert_number | ||
#' @importFrom checkmate assert_integer assert_integerish | ||
#' @importFrom checkmate assert_date assert_function assert_class | ||
#' @import epiprocess parsnip | ||
## usethis namespace: end | ||
NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# epi_recipe produces error if not an epi_df | ||
|
||
Code | ||
epi_recipe(tib) | ||
Condition | ||
Error in `epi_recipe()`: | ||
! `x` must be an <epi_df> or a <formula>, not a <tbl_df>. | ||
|
||
--- | ||
|
||
Code | ||
epi_recipe(y ~ x, tib) | ||
Condition | ||
Error in `epi_recipe()`: | ||
! `epi_recipe()` has been called with a non-<epi_df> object. Use `recipe()` instead. | ||
|
||
--- | ||
|
||
Code | ||
epi_recipe(m) | ||
Condition | ||
Error in `epi_recipe()`: | ||
! `x` must be an <epi_df> or a <formula>, not a <matrix>. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# fit method does not silently drop the class | ||
|
||
Code | ||
epi_recipe(y ~ x, data = tbl) | ||
Condition | ||
Error in `epi_recipe()`: | ||
! `epi_recipe()` has been called with a non-<epi_df> object. Use `recipe()` instead. | ||
|
||
--- | ||
|
||
Code | ||
ewf_erec_edf %>% fit(tbl) | ||
Condition | ||
Error in `if (new_meta != old_meta) ...`: | ||
! argument is of length zero | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters