Skip to content

Move to CI, include data, clean up dependencies, add examples #77

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

Merged
merged 51 commits into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
bda3f17
add roxygen example
ChloeYou May 5, 2022
e2eb164
example added to epi_slide roxygen
ChloeYou May 5, 2022
4a14dc8
add codeowners
dajmcdon May 5, 2022
5cb9f3e
add others
dajmcdon May 5, 2022
8c7812b
only me for now
dajmcdon May 5, 2022
6d4a510
test the action
dajmcdon May 5, 2022
5df7d9b
add slide and cor examples; add internal dataset for example
ChloeYou May 6, 2022
bd3f0f8
Update R-CMD-check.yaml
dajmcdon May 6, 2022
9fbc24b
try installing from my fork
dajmcdon May 6, 2022
9344e0b
remove unnecessary extra install
dajmcdon May 6, 2022
549fde7
add example and epi_archive builtin data
ChloeYou May 6, 2022
d18500b
R code cleanup -> R CMD Check passes (notes only)
dajmcdon May 10, 2022
ef38df6
ensure there's no stray crud in vignettes/
dajmcdon May 10, 2022
b08ef12
redocument everything
dajmcdon May 10, 2022
cb5fc34
clean up the description
dajmcdon May 10, 2022
c3bd254
add in gh CI checks now that we should pass
dajmcdon May 10, 2022
a742048
merge description/r-cmd-check.yaml
dajmcdon May 10, 2022
27065e0
change the dependency back to my fork
dajmcdon May 10, 2022
7f4384e
add missing dependencies for vignettes
dajmcdon May 10, 2022
df56278
local checks pass, but there's still a bug in the archive vignette
dajmcdon May 11, 2022
4b27914
allow an error in the archive vignette. I cannot determine the reason…
dajmcdon May 11, 2022
5265efa
Merge pull request #4 from dajmcdon/djm-main
dajmcdon May 11, 2022
f92f55c
create new built-in dataset and document; update examples in roxygen
ChloeYou May 11, 2022
0682295
Replaced all instances of gginnards.
kenmawer May 11, 2022
843e41d
resolve conflicts
ChloeYou May 11, 2022
8d819fa
resolve build check warning
ChloeYou May 11, 2022
758fd5c
make changes according to PR feedback
ChloeYou May 12, 2022
094bf64
outlier examples added
ChloeYou May 12, 2022
03b083d
save wip epix method examples
ChloeYou May 12, 2022
c8707a0
finish examples for epix_
ChloeYou May 12, 2022
763af8b
Merge branch 'main' into km/remove-gginnards
kenmawer May 12, 2022
74761ac
Removed gginnards
kenmawer May 12, 2022
c910106
resolve dplyr::select issue in examples
ChloeYou May 13, 2022
0b16591
Merge pull request #5 from dajmcdon/cy-add-roxygen-example
dajmcdon May 13, 2022
e1cbd56
Merge branch 'main' of https://github.com/dajmcdon/epiprocess into km…
kenmawer May 13, 2022
c5f09ef
Fixed the wrong layering of the ggplots.
kenmawer May 13, 2022
062125b
Merge pull request #6 from dajmcdon/km/remove-gginnards
dajmcdon May 13, 2022
ccf748a
rebuild docs
dajmcdon May 18, 2022
f14db2d
kill conflict
dajmcdon May 18, 2022
3c83c72
handle minor formatting feedback from @brookslogan
dajmcdon May 18, 2022
a40e0b0
update data to include tx and ny for correlation example
ChloeYou May 20, 2022
9a99218
add licensing to data.R
ChloeYou May 20, 2022
76b43bd
rename example data with suffix
ChloeYou May 20, 2022
5c954c5
add examples without latency warning in slide.R
ChloeYou May 20, 2022
2df3625
handle feedback from @brookslogan #77
ChloeYou May 21, 2022
f9d070a
handle feedback from @brookslogan #77
ChloeYou May 21, 2022
504f2fe
change to internal data in vignettes; add attribution to vignettes; s…
ChloeYou May 23, 2022
6220f9e
changed all vignette datasets
ChloeYou May 23, 2022
d8cf124
change example to match change in internal data
ChloeYou May 24, 2022
6c8f252
change license back to MIT
ChloeYou May 24, 2022
b62552e
Merge pull request #10 from dajmcdon/cy-add-roxygen-example
dajmcdon May 24, 2022
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
5 changes: 5 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
^.*\.Rproj$
^\.Rproj\.user$
^LICENSE\.md$
^\.github$
^docs$
^_pkgdown.yml
^index\.md$
^data-raw$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@dajmcdon
29 changes: 29 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.RData
.Ruserdata
*.Rproj
inst/doc
105 changes: 49 additions & 56 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,63 +1,56 @@
Package: epiprocess
Type: Package
Package: epiprocess
Title: Tools for basic signal processing in epidemiology
Version: 1.0.0
Authors@R:
c(
person(given = "Jacob",
family = "Bien",
role = "ctb"),
person(given = "Logan",
family = "Brooks",
role = "aut"),
person(given = "Rafael",
family = "Catoia",
role = "ctb"),
person(given = "Daniel",
family = "McDonald",
role = "ctb"),
person(given = "Quang",
family = "Nguyen",
role = "ctb"),
person(given = "Evan",
family = "Ray",
role = "aut"),
person(given = "Dmitry",
family = "Shemetov",
role = "ctb"),
person(given = "Ryan",
family = "Tibshirani",
role = c("aut", "cre"),
email = "ryantibs@cmu.edu"))
Description: This package introduces a common data structure for epidemiological
data sets measured over space and time, and offers associated utilities to
perform basic signal processing tasks.
Authors@R: c(
person("Jacob", "Bien", role = "ctb"),
person("Logan", "Brooks", role = "aut"),
person("Rafael", "Catoia", role = "ctb"),
person("Daniel", "McDonald", role = "ctb"),
person("Quang", "Nguyen", role = "ctb"),
person("Evan", "Ray", role = "aut"),
person("Dmitry", "Shemetov", role = "ctb"),
person("Ryan", "Tibshirani", , "ryantibs@cmu.edu", role = c("aut", "cre"))
)
Description: This package introduces a common data structure for
epidemiological data sets measured over space and time, and offers
associated utilities to perform basic signal processing tasks.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.2
Remotes:
cmu-delphi/delphi-epidata-r,
reconverse/outbreaks
Imports:
data.table,
delphi.epidata,
dplyr,
fabletools,
feasts,
genlasso,
lubridate,
magrittr,
purrr,
R6,
rlang,
slider,
tibble,
tidyselect,
tidyr,
tsibble
data.table,
dplyr,
fabletools,
feasts,
generics,
genlasso,
lubridate,
magrittr,
purrr,
R6,
rlang,
slider,
tibble,
tidyr,
tidyselect,
tsibble,
utils
Suggests:
outbreaks,
testthat (>= 3.0.0),
covidcast,
delphi.epidata,
ggplot2,
knitr,
outbreaks,
rmarkdown,
testthat (>= 3.0.0)
VignetteBuilder:
knitr
Remotes:
dajmcdon/delphi.epidata,
reconverse/outbreaks
Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.0
Depends:
R (>= 2.10)
16 changes: 15 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ S3method(tail,epi_df)
S3method(ungroup,epi_df)
S3method(unnest,epi_df)
export("%>%")
export(arrange)
export(as_epi_archive)
export(as_epi_df)
export(as_tsibble)
export(detect_outlr)
export(detect_outlr_rm)
export(detect_outlr_stl)
Expand All @@ -31,10 +33,19 @@ export(epi_slide)
export(epix_as_of)
export(epix_merge)
export(epix_slide)
export(filter)
export(group_by)
export(group_modify)
export(growth_rate)
export(is_epi_archive)
export(is_epi_df)
export(quiet)
export(mutate)
export(relocate)
export(rename)
export(slice)
export(ungroup)
export(unnest)
importFrom(R6,R6Class)
importFrom(data.table,as.data.table)
importFrom(data.table,between)
importFrom(data.table,key)
Expand All @@ -48,6 +59,7 @@ importFrom(dplyr,group_modify)
importFrom(dplyr,mutate)
importFrom(dplyr,relocate)
importFrom(dplyr,rename)
importFrom(dplyr,select)
importFrom(dplyr,slice)
importFrom(dplyr,ungroup)
importFrom(lubridate,days)
Expand All @@ -68,3 +80,5 @@ importFrom(tidyr,unnest)
importFrom(tidyselect,eval_select)
importFrom(tidyselect,starts_with)
importFrom(tsibble,as_tsibble)
importFrom(utils,head)
importFrom(utils,tail)
Loading