-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(epi[x]_slide): hint on forgotten syntax specifying comp
- Loading branch information
1 parent
44e7095
commit e5adcbd
Showing
8 changed files
with
115 additions
and
16 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,7 +1,7 @@ | ||
Type: Package | ||
Package: epiprocess | ||
Title: Tools for basic signal processing in epidemiology | ||
Version: 0.9.0 | ||
Version: 0.10.1 | ||
Authors@R: c( | ||
person("Jacob", "Bien", role = "ctb"), | ||
person("Logan", "Brooks", , "[email protected]", role = c("aut", "cre")), | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,27 @@ | ||
# as_slide_computation raises errors as expected | ||
|
||
Code | ||
toy_edf %>% group_by(geo_value) %>% epi_slide(.window_size = 6, tibble( | ||
slide_value = mean(.x$value))) | ||
Condition | ||
Error in `as_slide_computation()`: | ||
! Failed to convert `tibble(slide_value = mean(.x$value))` to a slide computation. | ||
* If you were trying to use the formula interface, maybe you forgot a tilde at the beginning. | ||
* If you were trying to use the tidyeval interface, maybe you forgot to specify the name, e.g.: `my_output_col_name =`. | ||
* If you were trying to use advanced features of the tidyeval interface such as `!! name_variable :=`, you might have forgotten the required leading comma. | ||
Caused by error: | ||
! object '.x' not found | ||
|
||
--- | ||
|
||
Code | ||
toy_archive %>% epix_slide(tibble(slide_value = mean(.x$value))) | ||
Condition | ||
Error in `as_slide_computation()`: | ||
! Failed to convert `.f` to a slide computation. | ||
* If you were trying to use the formula interface, maybe you forgot a tilde at the beginning. | ||
* If you were trying to use the tidyeval interface, maybe you forgot to specify the name, e.g.: `my_output_col_name =`. | ||
* If you were trying to use advanced features of the tidyeval interface such as `!! name_variable :=`, you might have forgotten the required leading comma. | ||
Caused by error: | ||
! object '.x' not found | ||
|
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