Skip to content

Commit a1f2de4

Browse files
committed
Merge branch 'main' into djm/pkgdown-prettier
2 parents 768a173 + 9165bcc commit a1f2de4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+4777
-1028
lines changed

.Rbuildignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
^renv$
2+
^renv\.lock$
13
^.*\.Rproj$
24
^\.Rproj\.user$
35
^LICENSE\.md$

.github/workflows/R-CMD-check.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
#
4+
# Created with usethis + edited to run on PRs to dev, use API key.
35
on:
46
push:
57
branches: [main, master]
68
pull_request:
7-
branches: [main, master]
9+
branches: [main, master, dev]
810

911
name: R-CMD-check
1012

@@ -27,3 +29,5 @@ jobs:
2729
needs: check
2830

2931
- uses: r-lib/actions/check-r-package@v2
32+
env:
33+
DELPHI_EPIDATA_KEY: ${{ secrets.SECRET_EPIPROCESS_GHACTIONS_DELPHI_EPIDATA_KEY }}

.github/workflows/pkgdown.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
#
4+
# Created with usethis + edited to run on PRs to dev, use API key.
35
on:
46
push:
57
branches: [main, master]
68
pull_request:
7-
branches: [main, master]
9+
branches: [main, master, dev]
810
release:
911
types: [published]
1012
workflow_dispatch:
@@ -13,6 +15,8 @@ name: pkgdown
1315

1416
jobs:
1517
pkgdown:
18+
# only build docs on the main repository and not forks
19+
if: github.repository_owner == 'cmu-delphi'
1620
runs-on: ubuntu-latest
1721
# Only restrict concurrency for non-PR jobs
1822
concurrency:
@@ -34,6 +38,8 @@ jobs:
3438
needs: website
3539

3640
- name: Build site
41+
env:
42+
DELPHI_EPIDATA_KEY: ${{ secrets.SECRET_EPIPROCESS_GHACTIONS_DELPHI_EPIDATA_KEY }}
3743
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
3844
shell: Rscript {0}
3945

DESCRIPTION

+31-9
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,39 @@
11
Type: Package
22
Package: epiprocess
33
Title: Tools for basic signal processing in epidemiology
4-
Version: 0.5.0.9999
4+
Version: 0.7.0
55
Authors@R: c(
66
person("Jacob", "Bien", role = "ctb"),
77
person("Logan", "Brooks", role = "aut"),
88
person("Rafael", "Catoia", role = "ctb"),
9+
person("Nat", "DeFries", role = "ctb"),
910
person("Daniel", "McDonald", role = "aut"),
1011
person("Rachel", "Lobay", role = "ctb"),
1112
person("Ken", "Mawer", role = "ctb"),
1213
person("Chloe", "You", role = "ctb"),
1314
person("Quang", "Nguyen", role = "ctb"),
1415
person("Evan", "Ray", role = "aut"),
1516
person("Dmitry", "Shemetov", role = "ctb"),
16-
person("Ryan", "Tibshirani", , "[email protected]", role = c("aut", "cre"))
17+
person("Ryan", "Tibshirani", , "[email protected]", role = c("aut", "cre")),
18+
person("Lionel", "Henry", role = "ctb", comment = "Author of included rlang fragments"),
19+
person("Hadley", "Wickham", role = "ctb", comment = "Author of included rlang fragments"),
20+
person("Posit", role = "cph", comment = "Copyright holder of included rlang fragments")
1721
)
1822
Description: This package introduces a common data structure for epidemiological
1923
data reported by location and time, provides another data structure to
2024
work with revisions to these data sets over time, and offers associated
2125
utilities to perform basic signal processing tasks.
2226
License: MIT + file LICENSE
23-
Imports:
27+
Copyright: file inst/COPYRIGHTS
28+
Imports:
29+
cli,
2430
data.table,
25-
dplyr,
31+
dplyr (>= 1.0.0),
2632
fabletools,
2733
feasts,
2834
generics,
2935
genlasso,
36+
lifecycle (>= 1.0.1),
3037
lubridate,
3138
magrittr,
3239
purrr,
@@ -35,18 +42,18 @@ Imports:
3542
slider,
3643
tibble,
3744
tidyr,
38-
tidyselect,
45+
tidyselect (>= 1.2.0),
3946
tsibble,
40-
utils
47+
utils,
48+
vctrs
4149
Suggests:
4250
covidcast,
4351
epidatr,
4452
ggplot2,
4553
knitr,
4654
outbreaks,
4755
rmarkdown,
48-
testthat (>= 3.0.0),
49-
vctrs,
56+
testthat (>= 3.1.5),
5057
waldo (>= 0.3.1),
5158
withr
5259
VignetteBuilder:
@@ -59,7 +66,22 @@ Config/testthat/edition: 3
5966
Encoding: UTF-8
6067
LazyData: true
6168
Roxygen: list(markdown = TRUE)
62-
RoxygenNote: 7.2.1
69+
RoxygenNote: 7.2.3
6370
Depends:
6471
R (>= 2.10)
6572
URL: https://cmu-delphi.github.io/epiprocess/
73+
Collate:
74+
'archive.R'
75+
'correlation.R'
76+
'data.R'
77+
'epi_df.R'
78+
'epiprocess.R'
79+
'methods-epi_archive.R'
80+
'grouped_epi_archive.R'
81+
'growth_rate.R'
82+
'methods-epi_df.R'
83+
'outliers.R'
84+
'reexports.R'
85+
'slide.R'
86+
'utils.R'
87+
'utils_pipe.R'

NAMESPACE

+36-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
11
# Generated by roxygen2: do not edit by hand
22

33
S3method("[",epi_df)
4-
S3method(arrange,epi_df)
4+
S3method("names<-",epi_df)
55
S3method(as_epi_df,data.frame)
66
S3method(as_epi_df,epi_df)
77
S3method(as_epi_df,tbl_df)
88
S3method(as_epi_df,tbl_ts)
9+
S3method(as_tibble,epi_df)
910
S3method(as_tsibble,epi_df)
10-
S3method(filter,epi_df)
11+
S3method(dplyr_col_modify,col_modify_recorder_df)
12+
S3method(dplyr_col_modify,epi_df)
13+
S3method(dplyr_reconstruct,epi_df)
14+
S3method(dplyr_row_slice,epi_df)
15+
S3method(epix_truncate_versions_after,epi_archive)
16+
S3method(epix_truncate_versions_after,grouped_epi_archive)
17+
S3method(group_by,epi_archive)
1118
S3method(group_by,epi_df)
19+
S3method(group_by,grouped_epi_archive)
20+
S3method(group_by_drop_default,grouped_epi_archive)
1221
S3method(group_modify,epi_df)
13-
S3method(mutate,epi_df)
22+
S3method(groups,grouped_epi_archive)
1423
S3method(next_after,Date)
1524
S3method(next_after,integer)
1625
S3method(print,epi_df)
17-
S3method(relocate,epi_df)
18-
S3method(rename,epi_df)
19-
S3method(slice,epi_df)
2026
S3method(summary,epi_df)
2127
S3method(ungroup,epi_df)
28+
S3method(ungroup,grouped_epi_archive)
2229
S3method(unnest,epi_df)
2330
export("%>%")
2431
export(archive_cases_dv_subset)
@@ -35,12 +42,14 @@ export(epi_slide)
3542
export(epix_as_of)
3643
export(epix_merge)
3744
export(epix_slide)
45+
export(epix_truncate_versions_after)
3846
export(filter)
3947
export(group_by)
4048
export(group_modify)
4149
export(growth_rate)
4250
export(is_epi_archive)
4351
export(is_epi_df)
52+
export(is_grouped_epi_archive)
4453
export(max_version_with_row_in)
4554
export(mutate)
4655
export(new_epi_df)
@@ -60,9 +69,16 @@ importFrom(data.table,key)
6069
importFrom(data.table,set)
6170
importFrom(data.table,setkeyv)
6271
importFrom(dplyr,arrange)
72+
importFrom(dplyr,bind_rows)
73+
importFrom(dplyr,dplyr_col_modify)
74+
importFrom(dplyr,dplyr_reconstruct)
75+
importFrom(dplyr,dplyr_row_slice)
6376
importFrom(dplyr,filter)
6477
importFrom(dplyr,group_by)
78+
importFrom(dplyr,group_by_drop_default)
6579
importFrom(dplyr,group_modify)
80+
importFrom(dplyr,group_vars)
81+
importFrom(dplyr,groups)
6682
importFrom(dplyr,mutate)
6783
importFrom(dplyr,relocate)
6884
importFrom(dplyr,rename)
@@ -72,20 +88,34 @@ importFrom(dplyr,ungroup)
7288
importFrom(lubridate,days)
7389
importFrom(lubridate,weeks)
7490
importFrom(magrittr,"%>%")
91+
importFrom(purrr,map_lgl)
7592
importFrom(rlang,"!!!")
7693
importFrom(rlang,"!!")
7794
importFrom(rlang,.data)
7895
importFrom(rlang,.env)
7996
importFrom(rlang,arg_match)
97+
importFrom(rlang,caller_arg)
98+
importFrom(rlang,caller_env)
8099
importFrom(rlang,enquo)
81100
importFrom(rlang,enquos)
101+
importFrom(rlang,env)
102+
importFrom(rlang,f_env)
103+
importFrom(rlang,f_rhs)
104+
importFrom(rlang,is_environment)
105+
importFrom(rlang,is_formula)
106+
importFrom(rlang,is_function)
107+
importFrom(rlang,is_missing)
82108
importFrom(rlang,is_quosure)
109+
importFrom(rlang,missing_arg)
110+
importFrom(rlang,new_function)
83111
importFrom(rlang,quo_is_missing)
84112
importFrom(rlang,sym)
85113
importFrom(rlang,syms)
86114
importFrom(stats,cor)
87115
importFrom(stats,median)
116+
importFrom(tibble,as_tibble)
88117
importFrom(tidyr,unnest)
89118
importFrom(tidyselect,eval_select)
90119
importFrom(tidyselect,starts_with)
91120
importFrom(tsibble,as_tsibble)
121+
importFrom(utils,tail)

0 commit comments

Comments
 (0)