Skip to content
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

catch main up to dev, epiprocess 0.9.0 #530

Merged
merged 180 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
775c0fc
Clean up unused assignment
brookslogan Jun 12, 2024
3d4e498
fix(epix_slide): don't serialize object in error message
brookslogan Jun 19, 2024
e0188ce
Mention trailing commas as possible cause of slide ... error
brookslogan Jun 22, 2024
607e8e7
WIP (to rebase): match data-masking outputs, deprecate competing parms
brookslogan Jun 26, 2024
0f876c3
docs: document (GHA)
brookslogan Jun 26, 2024
7a62004
style: styler (GHA)
brookslogan Jun 26, 2024
b2e4e61
as_slide_computation doesn't take new_col_name in this iteration
brookslogan Jun 26, 2024
0a433dc
Fix some of the failing epi_slide tests
brookslogan Jun 26, 2024
3ee20e8
Update remaining epi_slide tests
brookslogan Jun 27, 2024
d69c5af
style: styler (GHA)
brookslogan Jun 27, 2024
02211a4
Shift to new computation output format scheme in epix_slide()
brookslogan Jul 1, 2024
127c1f1
docs: document (GHA)
brookslogan Jul 1, 2024
c17b67e
Fix and update comp_value validation
brookslogan Jul 30, 2024
0fa282a
style: styler (GHA)
brookslogan Jul 30, 2024
b128abb
Fix `as_tibble` on grouped `epi_df`s w/ current `tsibble` version
brookslogan Jul 30, 2024
8d7ea7d
Fix tidyeval unnamed tibble names access errors
brookslogan Jul 30, 2024
c66ef54
Update archive slide tests using deprecated features
brookslogan Jul 30, 2024
30a2166
Actually allow multiple quosures to be passed into `epi_slide`
brookslogan Jul 30, 2024
e9b1b1b
Update `epi_slide` tests with expanded data-masking support
brookslogan Jul 30, 2024
9b73649
Avoid warning in slides on `binding = NULL` if binding doesn't exist
brookslogan Jul 30, 2024
a1c7020
Make advanced slide tidyeval tests realistically work around recycling
brookslogan Jul 30, 2024
ec77184
Test that epi_slide balks at bad computation outputs
brookslogan Jul 30, 2024
7b5bd4e
Merge remote-tracking branch 'upstream/dev' into lcb/slide-improvemen…
brookslogan Jul 31, 2024
e089d42
Document new slide tidyeval features
brookslogan Jul 31, 2024
4027f06
docs: more on tidyeval features, as_list_col + names_sep deprecations
brookslogan Jul 31, 2024
2160921
Check deprecations earlier in fns, correct the `when` args
brookslogan Aug 1, 2024
90b7e2f
Fix tidyeval breaking on dot-prefixed column names
brookslogan Aug 1, 2024
1f410fc
fix: Actually complete workaround for tsibble:::as_tibble.grouped_df
brookslogan Aug 2, 2024
512c6ba
refactor(slide.R): move slide_one_grp definition after input munging
brookslogan Aug 2, 2024
ba536cd
Fix deprecations referring to wrong functions
brookslogan Aug 2, 2024
00c0d85
refactor(epix_slide): don't double-convert tidyeval + better code ord…
brookslogan Aug 2, 2024
70e86a3
Soften as_list_col and names_sep deprecations
brookslogan Aug 2, 2024
5452bba
Fix some deprecation message naming and details
brookslogan Aug 2, 2024
5f588e0
fix warn for slide_opt's multi column case
dsweber2 Aug 2, 2024
67438a8
docs: document (GHA)
dsweber2 Aug 2, 2024
f3a844e
style: styler (GHA)
dsweber2 Aug 2, 2024
dfb249a
Fix softer deprecation of epi[x]_slide(<nm> = <df>, as_list_col = TRUE)
brookslogan Aug 2, 2024
7a7e781
fix(epi[x]_slide): again, don't reject (row)named data frames
brookslogan Aug 2, 2024
418a65a
docs(epi[x]_slide): update NEWS.md, vignettes for breaking changes
brookslogan Aug 3, 2024
1c379fb
works for both character and tidyselect
dsweber2 Aug 5, 2024
b37160c
lintr
dsweber2 Aug 5, 2024
4335dc1
feat: add `complete.epi_df`
brookslogan Jul 20, 2024
cfeda76
Merge pull request #488 from cmu-delphi/lcb/complete-grouped-epi_dfs
dshemetov Aug 5, 2024
9c5ff07
fix+doc: ?epi_df works again
dshemetov Aug 5, 2024
1d7b46f
Merge pull request #502 from cmu-delphi/ds/fix-doc
dshemetov Aug 5, 2024
0d794c6
Linting, nolinting, and nonolinting
brookslogan Aug 5, 2024
e0a05c0
fix: include Inf as possible time_type in error message
dshemetov Aug 5, 2024
1fdafb2
feat: before=Inf works in opt functions
dshemetov Aug 5, 2024
7f8c4a7
Merge pull request #504 from cmu-delphi/ds/inf
dshemetov Aug 6, 2024
9c17094
Remove unnecessary/misleading `select.epi_df` implementation
brookslogan Aug 8, 2024
8debd4c
Bump dplyr dependency + make some tests pass on minimum of dplyr range
brookslogan Aug 9, 2024
3430f0e
Merge pull request #507 from cmu-delphi/lcb/remove-select-epi-df
brookslogan Aug 9, 2024
e8b3bb1
mark new_col_name and names_sep as not used for optimized slide fns
nmdefries Aug 9, 2024
0b45656
add help text to errors
nmdefries Aug 9, 2024
3e4c98e
Merge pull request #508 from cmu-delphi/ndefries/remove-name-col-doc
dshemetov Aug 9, 2024
0d37b6f
revision analysis first draft
dsweber2 Jul 23, 2024
bcf5a9f
fixing check
dsweber2 Jul 24, 2024
0ea1d56
pkgdown fix
dsweber2 Jul 24, 2024
b9dbb08
tests for revision_summary and bugfix
dsweber2 Jul 25, 2024
8bfa76f
correct handling of the deprecated method
dsweber2 Jul 25, 2024
3f4e0b6
style: styler (GHA)
dsweber2 Jul 25, 2024
db9c263
happier linter
dsweber2 Jul 25, 2024
368f8f6
adding briefly to a vignette
dsweber2 Jul 25, 2024
091a900
style: styler (GHA)
dsweber2 Jul 25, 2024
6dc2be0
formatting, what's that
dsweber2 Jul 25, 2024
1e2f3ce
review recs from logan
dsweber2 Jul 29, 2024
bb31c6a
docs: document (GHA)
dsweber2 Jul 29, 2024
dae487f
tidyselect fix
dsweber2 Jul 29, 2024
d646691
need to include c_across
dsweber2 Jul 30, 2024
28aaa32
News and description.
dsweber2 Jul 30, 2024
d56689d
slightly clearer printing, renaming
dsweber2 Jul 30, 2024
c08760c
better docs, separate compactify, improved printing
dsweber2 Jul 31, 2024
448d29a
simple compactify test, rename function, fix warn
dsweber2 Jul 31, 2024
4b7f28a
style: styler (GHA)
dsweber2 Jul 31, 2024
cd7787d
from JingJing: min/max/med value, recent time cutoff
dsweber2 Jul 31, 2024
889d53e
fixing check and linter
dsweber2 Jul 31, 2024
c94a8dd
reorder to match `new_epi_df()` constructor
dajmcdon Aug 13, 2024
896a381
fix TZ warnings
dajmcdon Aug 13, 2024
4151828
add internal method to arrange epi_df in canonical order (mostly usef…
dajmcdon Aug 13, 2024
0763e99
styler
dajmcdon Aug 13, 2024
6556991
fix R CMD Check "long example lines" Note
dajmcdon Aug 13, 2024
c3665e6
pass all local checks
dajmcdon Aug 13, 2024
8fb30c9
bump version
dajmcdon Aug 13, 2024
ec43cef
style: styler (GHA)
dajmcdon Aug 13, 2024
1f44295
Merge pull request #492 from cmu-delphi/revisionSummary
dsweber2 Aug 13, 2024
2bf591a
Use an actually-valid `tz` instead of `"ET"` in tests
brookslogan Aug 15, 2024
ac62ddb
respond to review
dajmcdon Aug 15, 2024
7273781
Update tests/testthat/test-arrange-canonical.R
dajmcdon Aug 15, 2024
46061fb
Update tests/testthat/test-utils.R
dajmcdon Aug 15, 2024
08ac040
hard error in tests
dajmcdon Aug 15, 2024
8ff000e
Merge branch 'dev' into arrange-cannonical
dajmcdon Aug 15, 2024
4c830ef
Column order change for versioning snapshot
dsweber2 Aug 15, 2024
f53f331
refactor: explain how tidyeval column redefinition actually works out
brookslogan Aug 15, 2024
04a8a75
Merge branch 'dev' into optAllOfFix
nmdefries Aug 19, 2024
08e6814
style: styler (GHA)
nmdefries Aug 19, 2024
ff9bc0b
Nat's recommendations
dsweber2 Aug 19, 2024
45ac27b
docs: document (GHA)
dsweber2 Aug 19, 2024
f3ecd6f
testing character, rather than call b/c inconsistencies
dsweber2 Aug 19, 2024
439906b
news and ~weather~ version bump
dsweber2 Aug 19, 2024
7fd380c
Merge pull request #500 from cmu-delphi/optAllOfFix
dsweber2 Aug 20, 2024
271fa69
doc+test: update epix_merge tests and docs (#514)
rnayebi21 Aug 20, 2024
5cfa121
refactor(epi[x]_slide): rearrange new_col_name logic branches
brookslogan Aug 21, 2024
8dff011
Merge pull request #511 from cmu-delphi/arrange-cannonical
brookslogan Aug 21, 2024
7277b81
tests: refactor a few slide tests (#516)
dshemetov Aug 21, 2024
4496512
Merge branch 'dev' into lcb/slide-improvements-2024-06
dshemetov Aug 21, 2024
4fe94da
docs: document (GHA)
dshemetov Aug 21, 2024
6b7944e
tests: enable parallel tests
dshemetov Aug 21, 2024
6a70274
tests: fix a few tests
dshemetov Aug 21, 2024
902bf61
docs: document (GHA)
dshemetov Aug 21, 2024
0faa438
Fix misfiled NEWS.md entry, combine two breaking changes sections
brookslogan Aug 21, 2024
d88ec2d
tests: even more slide test consolidation
dshemetov Aug 22, 2024
4553b89
doc: document
dshemetov Aug 22, 2024
971da03
tests: even more slide test refactors
dshemetov Aug 22, 2024
871946f
lint: lint
dshemetov Aug 22, 2024
de948b5
wip: rework slide window args (#513)
dshemetov Aug 23, 2024
b393491
lint: lint
dshemetov Aug 23, 2024
9c4c49d
doc: doc
dshemetov Aug 23, 2024
57cda93
feat: other_keys as arg in epi_df, epi_archive (#512)
dajmcdon Aug 23, 2024
f479acf
docs: version and news
dshemetov Aug 23, 2024
2382af0
refactor!: hard deprecate names_sep and as_list_col in epix_slide
dshemetov Aug 23, 2024
5f9ffc8
doc: doc
dshemetov Aug 23, 2024
2c043d5
refactor: dot prefix epix_slide args as well
dshemetov Aug 23, 2024
c0f6499
doc: improve the .f documentation for epi_slide and epix_slide
dshemetov Aug 24, 2024
2f91a90
doc: switch centre to center
dshemetov Aug 24, 2024
9f33e1b
tests(assert_sufficient_f_args): test vs. mean, sum, slice; use expec…
brookslogan Aug 1, 2024
14cd736
BREAKING CHANGE(epix_slide): output `version` column, other re/dual-n…
brookslogan Aug 2, 2024
3110a7f
Fix vignette re. old clobberable version default + use versions_end
brookslogan Aug 6, 2024
aa73944
Rename max_version -> version in epix_as_of
brookslogan Aug 6, 2024
547d156
fix(epix_slide): partial time_value -> version output col rename
brookslogan Aug 20, 2024
4290363
Add group_vars.grouped_epi_archive
brookslogan Aug 21, 2024
4b112e5
refactor+tweak: add+use `format_class_vec` helper for messages
brookslogan Aug 22, 2024
8838c71
WIP Add docs for de-dupe approach, part of the required validation
brookslogan Aug 22, 2024
9127952
Style and fix&improve some .new_col_name validation
brookslogan Aug 22, 2024
7af57cc
style: styler (GHA)
brookslogan Aug 26, 2024
1181b97
Fix slide rebase issues, other partial renames, dotprefix internalfn
brookslogan Aug 29, 2024
1ae0ef5
Dot-prefix more args, locals; finish some incomplete renames
brookslogan Aug 29, 2024
6854c07
docs: document (GHA)
brookslogan Sep 4, 2024
ef2639e
Dot-prefix `f` args in helper functions (& their messages)
brookslogan Sep 4, 2024
9aafabb
WIP output column de-duping in epix_slide
brookslogan Sep 4, 2024
e463714
style: styler (GHA)
brookslogan Sep 4, 2024
8973edd
Add missing dot prefixes in some messages
brookslogan Sep 5, 2024
e039a40
Fix empty-version grouped slide behavior change, tweak warning
brookslogan Sep 5, 2024
dd5c769
feat: refactor epi_slide
dshemetov Aug 24, 2024
4444a6c
Fix typo
brookslogan Sep 10, 2024
b2dfa09
Allow dupe & dedupe cols in epi_slide; needs&helps future .keep=TRUE
brookslogan Sep 12, 2024
9b4f10a
style: styler (GHA)
brookslogan Sep 12, 2024
a110a42
Move to .keep = TRUE in `epi_slide` + fix other dedupe issues
brookslogan Sep 12, 2024
dfd49f5
fix: aggregate is now sum_groups_epi_df and other review changes
dshemetov Sep 6, 2024
53005ff
Correct commentary regarding slide output type edge cases
brookslogan Sep 13, 2024
e1d300d
feat(epi_slide): catch common operations x forgotten colname
brookslogan Sep 13, 2024
129ad9f
Test epi_df forbidden methods + fix error message
brookslogan Sep 13, 2024
fd04433
style: styler (GHA)
brookslogan Sep 13, 2024
16cf8d7
Use `cnd_class = TRUE` when snapshot is primary test
brookslogan Sep 13, 2024
8eca321
improve is null or na
dshemetov Sep 13, 2024
9ab9731
Merge pull request #521 from cmu-delphi/lcb/slide-unnest-dedupe-cols
brookslogan Sep 16, 2024
b1ab47d
refactor: move group_epi_df
dshemetov Sep 16, 2024
6b93d79
refactor: add arrange_[col/row]_canonical
dshemetov Sep 16, 2024
926f845
refactor: improve and slim down epi_slide tests
dshemetov Sep 17, 2024
c167ddf
lint: line breaks
dshemetov Sep 17, 2024
cccd6e3
Merge branch 'lcb/slide-improvements-2024-06' into ds/epi-slide-group
dshemetov Sep 17, 2024
f1abe17
fix: leftover merge issue and test fix
dshemetov Sep 17, 2024
409dcac
docs: document (GHA)
dshemetov Sep 17, 2024
214100d
Merge pull request #519 from cmu-delphi/ds/epi-slide-group
dshemetov Sep 18, 2024
d2372f0
Better detection, messaging, docs on epi_slide output clashes
brookslogan Sep 18, 2024
166b8c3
Fix partial rename
brookslogan Sep 18, 2024
82047a4
lint: lint
dshemetov Sep 18, 2024
46af707
Make format_tibble_row look better on time classes
brookslogan Sep 19, 2024
177e7cc
Improve slide output column conflict messages
brookslogan Sep 19, 2024
bde98ec
Fix data$ typo, avoid `.data$` in tidyselections
brookslogan Sep 19, 2024
48735c5
lint: more lint
dshemetov Sep 19, 2024
227e133
fix: .ref_time_values -> .versions in epix_slide and some doc fixes
dshemetov Sep 19, 2024
0eba732
docs: document (GHA)
dshemetov Sep 19, 2024
61de9ec
fix: fix the fix
dshemetov Sep 19, 2024
25aa1b2
Also check for `slide_value` name conflict in `epix_slide`
brookslogan Sep 20, 2024
4f8e8d5
Remove todo comment suggesting bad path
brookslogan Sep 20, 2024
d2dc2bf
Add some epix_slide output col dedupe tests
brookslogan Sep 20, 2024
dd19428
style: styler (GHA)
brookslogan Sep 20, 2024
8202c0e
refactor+doc: key_colnames and vignettes
dshemetov Sep 20, 2024
187bd5d
doc: update NEWS
dshemetov Sep 26, 2024
44e7095
Merge pull request #477 from cmu-delphi/lcb/slide-improvements-2024-06
dshemetov Sep 27, 2024
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: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
^.lintr$
^DEVELOPMENT.md$
man-roxygen
^.venv$
^sandbox.R$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ docs
renv/
renv.lock
.Rprofile
sandbox.R
43 changes: 26 additions & 17 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Type: Package
Package: epiprocess
Title: Tools for basic signal processing in epidemiology
Version: 0.8.0
Version: 0.9.0
Authors@R: c(
person("Jacob", "Bien", role = "ctb"),
person("Logan", "Brooks", email = "[email protected]", role = c("aut", "cre")),
person("Logan", "Brooks", , "[email protected]", role = c("aut", "cre")),
person("Rafael", "Catoia", role = "ctb"),
person("Nat", "DeFries", role = "ctb"),
person("Daniel", "McDonald", role = "aut"),
Expand All @@ -15,23 +15,30 @@ Authors@R: c(
person("Evan", "Ray", role = "aut"),
person("Dmitry", "Shemetov", role = "ctb"),
person("Ryan", "Tibshirani", role = "aut"),
person("Lionel", "Henry", role = "ctb", comment = "Author of included rlang fragments"),
person("Hadley", "Wickham", role = "ctb", comment = "Author of included rlang fragments"),
person("Posit", role = "cph", comment = "Copyright holder of included rlang fragments")
person("Lionel", "Henry", role = "ctb",
comment = "Author of included rlang fragments"),
person("Hadley", "Wickham", role = "ctb",
comment = "Author of included rlang fragments"),
person("Posit", role = "cph",
comment = "Copyright holder of included rlang fragments")
)
Description: This package introduces a common data structure for epidemiological
data reported by location and time, provides another data structure to
work with revisions to these data sets over time, and offers associated
utilities to perform basic signal processing tasks.
Description: This package introduces a common data structure for
epidemiological data reported by location and time, provides another
data structure to work with revisions to these data sets over time,
and offers associated utilities to perform basic signal processing
tasks.
License: MIT + file LICENSE
Copyright: file inst/COPYRIGHTS
URL: https://cmu-delphi.github.io/epiprocess/
Depends:
R (>= 3.6)
Imports:
checkmate,
cli,
data.table,
dplyr (>= 1.0.0),
dplyr (>= 1.0.8),
genlasso,
ggplot2,
glue,
lifecycle (>= 1.0.1),
lubridate,
magrittr,
Expand All @@ -43,7 +50,8 @@ Imports:
tidyselect (>= 1.2.0),
tsibble,
utils,
vctrs
vctrs,
waldo
Suggests:
covidcast,
devtools,
Expand All @@ -57,22 +65,22 @@ VignetteBuilder:
knitr
Remotes:
cmu-delphi/epidatr,
reconverse/outbreaks,
glmgen/genlasso
glmgen/genlasso,
reconverse/outbreaks
Config/testthat/edition: 3
Config/testthat/parallel: true
Copyright: file inst/COPYRIGHTS
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
Depends:
R (>= 2.10)
URL: https://cmu-delphi.github.io/epiprocess/
Collate:
'archive.R'
'autoplot.R'
'correlation.R'
'data.R'
'epi_df.R'
'epi_df_forbidden_methods.R'
'epiprocess.R'
'group_by_epi_df_methods.R'
'methods-epi_archive.R'
Expand All @@ -82,6 +90,7 @@ Collate:
'methods-epi_df.R'
'outliers.R'
'reexports.R'
'revision_analysis.R'
'slide.R'
'utils.R'
'utils_pipe.R'
31 changes: 30 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

S3method("[",epi_df)
S3method("names<-",epi_df)
S3method(Summary,epi_df)
S3method(arrange_canonical,default)
S3method(arrange_canonical,epi_df)
S3method(arrange_col_canonical,default)
S3method(arrange_col_canonical,epi_df)
S3method(arrange_row_canonical,default)
S3method(arrange_row_canonical,epi_df)
S3method(as_epi_df,data.frame)
S3method(as_epi_df,epi_df)
S3method(as_epi_df,tbl_df)
Expand All @@ -11,6 +18,7 @@ S3method(as_tsibble,epi_df)
S3method(autoplot,epi_df)
S3method(clone,epi_archive)
S3method(clone,grouped_epi_archive)
S3method(complete,epi_df)
S3method(dplyr_col_modify,col_modify_recorder_df)
S3method(dplyr_col_modify,epi_df)
S3method(dplyr_reconstruct,epi_df)
Expand All @@ -24,6 +32,7 @@ S3method(group_by,epi_df)
S3method(group_by,grouped_epi_archive)
S3method(group_by_drop_default,grouped_epi_archive)
S3method(group_modify,epi_df)
S3method(group_vars,grouped_epi_archive)
S3method(groups,grouped_epi_archive)
S3method(guess_period,Date)
S3method(guess_period,POSIXt)
Expand All @@ -32,24 +41,26 @@ S3method(key_colnames,data.frame)
S3method(key_colnames,default)
S3method(key_colnames,epi_archive)
S3method(key_colnames,epi_df)
S3method(mean,epi_df)
S3method(next_after,Date)
S3method(next_after,integer)
S3method(print,epi_archive)
S3method(print,epi_df)
S3method(print,grouped_epi_archive)
S3method(select,epi_df)
S3method(summary,epi_df)
S3method(ungroup,epi_df)
S3method(ungroup,grouped_epi_archive)
S3method(unnest,epi_df)
export("%>%")
export(archive_cases_dv_subset)
export(arrange)
export(arrange_canonical)
export(as_epi_archive)
export(as_epi_df)
export(as_tsibble)
export(autoplot)
export(clone)
export(complete)
export(detect_outlr)
export(detect_outlr_rm)
export(detect_outlr_stl)
Expand All @@ -64,8 +75,10 @@ export(epix_merge)
export(epix_slide)
export(epix_truncate_versions_after)
export(filter)
export(full_seq)
export(geo_column_names)
export(group_by)
export(group_epi_df)
export(group_modify)
export(growth_rate)
export(guess_period)
Expand All @@ -79,7 +92,9 @@ export(new_epi_df)
export(next_after)
export(relocate)
export(rename)
export(revision_summary)
export(slice)
export(sum_groups_epi_df)
export(time_column_names)
export(ungroup)
export(unnest)
Expand Down Expand Up @@ -109,6 +124,7 @@ importFrom(checkmate,vname)
importFrom(cli,cat_line)
importFrom(cli,cli_abort)
importFrom(cli,cli_inform)
importFrom(cli,cli_li)
importFrom(cli,cli_vec)
importFrom(cli,cli_warn)
importFrom(cli,format_message)
Expand All @@ -126,25 +142,35 @@ importFrom(data.table,set)
importFrom(data.table,setDF)
importFrom(data.table,setkeyv)
importFrom(dplyr,"%>%")
importFrom(dplyr,across)
importFrom(dplyr,all_of)
importFrom(dplyr,arrange)
importFrom(dplyr,bind_rows)
importFrom(dplyr,c_across)
importFrom(dplyr,dplyr_col_modify)
importFrom(dplyr,dplyr_reconstruct)
importFrom(dplyr,dplyr_row_slice)
importFrom(dplyr,everything)
importFrom(dplyr,filter)
importFrom(dplyr,group_by)
importFrom(dplyr,group_by_drop_default)
importFrom(dplyr,group_map)
importFrom(dplyr,group_modify)
importFrom(dplyr,group_vars)
importFrom(dplyr,groups)
importFrom(dplyr,if_all)
importFrom(dplyr,if_any)
importFrom(dplyr,if_else)
importFrom(dplyr,lag)
importFrom(dplyr,mutate)
importFrom(dplyr,near)
importFrom(dplyr,pick)
importFrom(dplyr,pull)
importFrom(dplyr,relocate)
importFrom(dplyr,rename)
importFrom(dplyr,select)
importFrom(dplyr,slice)
importFrom(dplyr,summarize)
importFrom(dplyr,tibble)
importFrom(dplyr,ungroup)
importFrom(ggplot2,autoplot)
Expand Down Expand Up @@ -176,6 +202,7 @@ importFrom(rlang,is_formula)
importFrom(rlang,is_function)
importFrom(rlang,is_missing)
importFrom(rlang,is_quosure)
importFrom(rlang,list2)
importFrom(rlang,missing_arg)
importFrom(rlang,new_function)
importFrom(rlang,quo_get_expr)
Expand All @@ -194,6 +221,8 @@ importFrom(stats,median)
importFrom(tibble,as_tibble)
importFrom(tibble,new_tibble)
importFrom(tibble,validate_tibble)
importFrom(tidyr,complete)
importFrom(tidyr,full_seq)
importFrom(tidyr,unnest)
importFrom(tidyselect,any_of)
importFrom(tidyselect,eval_select)
Expand Down
81 changes: 70 additions & 11 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,74 @@ Pre-1.0.0 numbering scheme: 0.x will indicate releases, while 0.x.y will indicat

# epiprocess 0.9

## Breaking changes

- `epi_slide` interface has major breaking changes.
- All variables are now dot-prefixed to be more consistent with tidyverse
style for functions that allow tidyeval.
- The `before/after` arguments have been replaced with the `.window_size` and
`.align` arguments.
- `names_sep` has been removed. If you return data frames from your
computations:
- without a name, they will be unpacked into separate columns without name
prefixes
- with a name, it will become a packed data.frame-class column (see
`tidyr::pack`).
- `as_list_col` has been removed. You can now directly return a list from your
slide computations instead. If you were using `as_list_col=TRUE`, you will
need to wrap your output in a list.
- Ungrouped slides are no longer allowed in `epi_slide`. If you used this for
geographic aggregation up to national, consider using `sum_groups_epi_df`.
- Added `sum_groups_epi_df` to allow aggregation across key columns prior to
sliding.
- `epix_slide` interface has major changes.
- All variables are now dot-prefixed to be more consistent with tidyverse
style for functions that allow tidyeval.
- `names_sep` has been removed. If you return data frames from your
computations:
- without a name, they will be unpacked into separate columns without name
prefixes
- with a name, it will become a packed data.frame-class column (see
`tidyr::pack`).
- `as_list_col` has been removed. You can now directly return a list from your
slide computations instead. If you were using `as_list_col=TRUE`, you will
need to wrap your output in a list.
- `as_epi_df()` now checks that every group has unique time values and errors if
this is not the case. The same check is performed at the beginning of
`epi_slide()`. This check is currently not enforced in dplyr operations (like
for joins, mutates, or select), but we plan to add it in the future.
- `as_epi_df()` or `as_epi_archive()` no longer accept `additional_metadata`.
Use the new `other_keys` arg to specify additional key columns, such as age
group columns or other demographic breakdowns. Miscellaneous metadata are no
longer handled by `epiprocess`, but you can use R's built-in `attr<-` instead
for a similar feature.

## Improvements

- Added `complete.epi_df`, which fills in missing values in an `epi_df` with
`NA`s. Uses `tidyr::complete` underneath and preserves `epi_df` metadata.
- Inclusion of the function `revision_summary` to provide basic revision
information for `epi_archive`s out of the box. (#492)

## Bug fixes

- Fix `epi_slide_opt` (and related functions) to correctly handle `before=Inf`.
Also allow multiple columns specified as a list of strings.
- Disallow `after=Inf` in slide functions, since it doesn't seem like a likely
use case and complicates code.

# epiprocess 0.8

## Breaking changes

- `epi_df`'s are now more strict about what types they allow in the time column.
Namely, we are explicit about only supporting `Date` at the daily and weekly
cadence and generic integer types (for yearly cadence).
- `epi_slide` `before` and `after` arguments are now require the user to
specific time units in certain cases. The `time_step` argument has been
removed.
- `epix_slide` `before` argument now defaults to `Inf`, and requires the user to
specify units in some cases. The `time_step` argument has been removed.
- `detect_outlr_stl(seasonal_period = NULL)` is no longer accepted. Use
`detect_outlr_stl(seasonal_period = <value>, seasonal_as_residual = TRUE)`
instead. See `?detect_outlr_stl` for more details.
Expand Down Expand Up @@ -50,6 +114,12 @@ Pre-1.0.0 numbering scheme: 0.x will indicate releases, while 0.x.y will indicat
are similar functions for `geo` and `version`).
- Fixed bug where `epix_slide_ref_time_values_default()` on datetimes would
output a huge number of `ref_time_values` spaced apart by mere seconds.
- In `epi_slide()` and `epix_slide()`:
- Multiple "data-masking" tidy evaluation expressions can be passed in via
`...`, rather than just one.
- Additional tidy evaluation features from `dplyr::mutate` are supported: `!!
name_var := value`, unnamed expressions evaluating to data frames, and `=
NULL`; see `?epi_slide` for more details.

## Cleanup

Expand All @@ -58,17 +128,6 @@ Pre-1.0.0 numbering scheme: 0.x will indicate releases, while 0.x.y will indicat
of `epi_df`s to let `{epipredict}` work more easily with other libraries (#471).
- Removed some external package dependencies.

## Breaking Changes

- `epi_df`'s are now more strict about what types they allow in the time column.
Namely, we are explicit about only supporting `Date` at the daily and weekly
cadence and generic integer types (for yearly cadence).
- `epi_slide` `before` and `after` arguments are now require the user to
specific time units in certain cases. The `time_step` argument has been
removed.
- `epix_slide` `before` argument now defaults to `Inf`, and requires the user to
specify units in some cases. The `time_step` argument has been removed.

# epiprocess 0.7.0

## Breaking changes:
Expand Down
Loading
Loading