Skip to content

Sync main with dev, epiprocess 0.9.0 #391

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 457 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
457 commits
Select commit Hold shift + click to select a range
45da6d2
Rename file to arx-classifier.Rmd
rachlobay Apr 26, 2024
40f71b4
Update references to vignettes in this package
rachlobay Apr 26, 2024
1a2f485
Remove horizon stuff
rachlobay Apr 26, 2024
8092e0a
Add a bit about n_training
rachlobay Apr 26, 2024
5641c95
remove surges
rachlobay Apr 26, 2024
b73ccac
Run use_this(purrr) and edit conclusion
rachlobay Apr 26, 2024
b3079dd
translating
rachlobay Apr 26, 2024
198d397
scale_colour_brewer()
rachlobay Apr 26, 2024
f1f80d3
Try 10% increase
rachlobay Apr 26, 2024
04553a6
see previous
rachlobay Apr 26, 2024
a78069e
description
rachlobay Apr 26, 2024
fb6ba33
Try to pass check
rachlobay Apr 26, 2024
24ff1e7
map over larger window
rachlobay Apr 26, 2024
29205c3
description
rachlobay Apr 26, 2024
dd357e7
Add purrr to suggests
rachlobay Apr 26, 2024
3845afa
Style file
rachlobay Apr 26, 2024
ec24435
Moved arx-classifier to articles
rachlobay Apr 26, 2024
9ba5580
Merge branch 'dev' into vignette-classifier
rachlobay Apr 26, 2024
b1adbd5
Please work
rachlobay Apr 26, 2024
b2cb7e5
Merge branch 'vignette-classifier' of https://github.com/cmu-delphi/e…
rachlobay Apr 26, 2024
cdd5a91
test
rachlobay Apr 26, 2024
3c6a44a
make sure version is updated
rachlobay Apr 26, 2024
fe1db83
Use latest version of description
rachlobay Apr 26, 2024
2b25c35
Move update vignette. May be parsnip warning
rachlobay Apr 27, 2024
08bb5ee
Merge pull request #313 from cmu-delphi/vignette-classifier
rachlobay Apr 27, 2024
99c30c6
Merge pull request #115 from cmu-delphi/ml-99-panel-data-vignette
rachlobay Apr 27, 2024
4d48f8e
Several manual changes
rachlobay Apr 27, 2024
a7fca20
purrr to suggests
rachlobay Apr 27, 2024
a3113b7
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
4bab9f0
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
63ebc57
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
a1b4e2b
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
3a1d2c7
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
1501eea
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
23084ce
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
7645f64
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
2c2a562
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
9da04fe
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
33feb87
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
acaf3db
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
5fd8a7a
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
d1a0be4
Update vignettes/smooth-qr.Rmd
rachlobay Apr 27, 2024
4b7059e
Intro changes & style
rachlobay Apr 27, 2024
c582250
Catch typos
rachlobay Apr 27, 2024
d509e76
Move to articles
rachlobay Apr 27, 2024
fb45ed0
Update vignettes/symptom-surveys.Rmd
rachlobay Apr 27, 2024
6792cec
Update vignettes/symptom-surveys.Rmd
rachlobay Apr 27, 2024
b3a33fa
Fix error and style
rachlobay Apr 27, 2024
e20ae32
Merge pull request #314 from cmu-delphi/vignette-smooth-qr
rachlobay Apr 27, 2024
0c3cac8
Change colours of lines
rachlobay Apr 27, 2024
4c8b627
Fix some mistakes in preprocessing-and-models class eqns
rachlobay Apr 27, 2024
282cd96
Update equation slightly
rachlobay Apr 27, 2024
ef3338b
styler
rachlobay Apr 27, 2024
03919d8
Merge pull request #326 from cmu-delphi/minor-fixes
dajmcdon Apr 27, 2024
46f6b09
Update vignettes/symptom-surveys.Rmd
rachlobay Apr 29, 2024
98c2305
Make changes based on Daniel's feedback and style
rachlobay Apr 29, 2024
50a24c5
Typo
rachlobay Apr 29, 2024
148202e
Fix simplification
rachlobay Apr 29, 2024
39e57c1
Merge pull request #315 from cmu-delphi/vignette-symptom-surveys
rachlobay Apr 29, 2024
cd3fe2e
feat: pkgdown adjustments to streamline vignettes
dajmcdon Apr 30, 2024
ca9f450
feat: add forecast method #293
dshemetov Apr 12, 2024
3ecb78c
refactor: replace predict with forecast in vignettes, tests, examples
dshemetov Apr 15, 2024
37be24c
recreate add/update/remove model fns
dajmcdon Apr 30, 2024
70c35c5
fix: downstream add/update/remove
dajmcdon Apr 30, 2024
d754409
feat: review updates
dshemetov Apr 15, 2024
286e467
pass local checks, move vignette back
dajmcdon Apr 30, 2024
b46ebb7
doc: version bump + news
dshemetov Apr 15, 2024
173c39f
style
dajmcdon Apr 30, 2024
5e50a5a
Merge pull request #319 from cmu-delphi/ds/forecast
dshemetov Apr 30, 2024
f5bddf6
ci: stop running pkgdown on every commit
dshemetov Apr 30, 2024
f043918
merge dev
dajmcdon May 1, 2024
0c3236c
Merge pull request #329 from cmu-delphi/ds/ci
dajmcdon May 1, 2024
5aa7828
Merge pull request #328 from cmu-delphi/325-workflow-adj
dajmcdon May 1, 2024
e045daa
import standalone purrr
dajmcdon May 9, 2024
947984a
baked data will _not_ be an epi_df
dajmcdon May 9, 2024
ac94e88
redocument, pass tests
dajmcdon May 9, 2024
5f24790
bump version
dajmcdon May 9, 2024
02ed38e
add lifecycle import
dajmcdon May 9, 2024
f2f30cc
make import explicit
dajmcdon May 9, 2024
e4664ef
rm glubort fun
dajmcdon May 9, 2024
a83dfd7
add back the s3 test, but order cols correctly
dajmcdon May 13, 2024
ad3cb38
export bake, but as a method
dajmcdon May 13, 2024
55e0808
include a test for bake
dajmcdon May 13, 2024
b12d656
pass tests
dajmcdon May 13, 2024
a98b354
Update NEWS.md
dajmcdon May 13, 2024
7aac0da
doc: rm juice from the website
dajmcdon May 13, 2024
f9c1f8f
Merge branch 'djm/deprecate' of https://github.com/cmu-delphi/epipred…
dajmcdon May 13, 2024
de6e1db
Merge pull request #331 from cmu-delphi/djm/deprecate
dajmcdon May 13, 2024
6e58c05
add missing rlang imports
dajmcdon Jun 14, 2024
cb63333
redocument
dajmcdon Jun 14, 2024
38bf81d
rewrap long vignette lines that annoy me (no need to check these)
dajmcdon Jun 14, 2024
12fafa6
stylr
dajmcdon Jun 14, 2024
abe8805
Merge pull request #339 from cmu-delphi/missing-rlang-imports
dajmcdon Jun 14, 2024
6795b45
switched out the version-aware and unaware example with a new example
rnayebi21 Jun 18, 2024
480a886
fixing typos
rnayebi21 Jun 19, 2024
7e8f61a
pull request checklist
rnayebi21 Jun 19, 2024
dc9e19a
style and document changes
rnayebi21 Jun 20, 2024
9af9373
document: document
dshemetov Jun 20, 2024
8aa8cef
removing redundancies
rnayebi21 Jun 20, 2024
637c2d9
fixing whitespacing caused by RStudio (wrapping)
rnayebi21 Jun 24, 2024
2a2b292
changed unclear variable names and removed unused parameters in forec…
rnayebi21 Jun 25, 2024
54385b7
style check
rnayebi21 Jun 25, 2024
ff10f36
doc: fix step_lag_difference example
dshemetov Jun 27, 2024
c7ce214
Update R/step_lag_difference.R
dshemetov Jun 27, 2024
ff95a70
doc: lint step_growth_rate example
dshemetov Jun 27, 2024
9fd37ca
doc: lint a few more examples
dshemetov Jun 27, 2024
14e3708
Merge pull request #349 from cmu-delphi/ds/step-lag-example
dshemetov Jun 27, 2024
7c888f1
refactor: epi_recipe warns when given non-epi_df
dshemetov Jun 28, 2024
0f000a4
doc: version and changelog
dshemetov Jun 28, 2024
6455828
Merge pull request #350 from cmu-delphi/ds/epi-recipe
dshemetov Jun 29, 2024
488b9d4
bug fixes?
dajmcdon Jul 4, 2024
055637d
runs
dajmcdon Jul 8, 2024
e62b203
don't execute examples conditionally, move engine pkgs to Suggests
dajmcdon Jul 8, 2024
585456b
checks pass
dajmcdon Jul 8, 2024
3028bb9
draft tests
dajmcdon Jul 8, 2024
4a05e14
patches for recipes 1.0.10->1.1 update
dsweber2 Jul 8, 2024
59c7764
found the bug in pivot_quantiles_wider
dajmcdon Jul 8, 2024
56920d1
bump patch version, missing man page
dsweber2 Jul 8, 2024
8179648
add a hidden index to avoid the no-duplicates list-col behaviour
dajmcdon Jul 8, 2024
4f9dac0
add a test that produced the bug previously
dajmcdon Jul 8, 2024
9e087f1
Merge pull request #355 from cmu-delphi/adjustAhead-hotfix
dajmcdon Jul 8, 2024
d1bd79d
Merge branch 'dev' into 356-pivot-quantiles-bug
dajmcdon Jul 8, 2024
2d2a3ad
run styler
dajmcdon Jul 8, 2024
1c9c6a7
Merge branch '356-pivot-quantiles-bug' into grf-qr-engine
dajmcdon Jul 8, 2024
21034df
Merge pull request #357 from cmu-delphi/356-pivot-quantiles-bug
dajmcdon Jul 8, 2024
58a3674
Make `layer_predict` forward stored dots_list to `predict()`
brookslogan Jul 9, 2024
615e112
working, documented implementation
dajmcdon Jul 10, 2024
0ba22b8
update documentation
dajmcdon Jul 10, 2024
f996414
Merge branch 'dev' into rn/improve-slide-examples
dajmcdon Jul 12, 2024
68baf07
slightly adjust test
dajmcdon Jul 12, 2024
0d59728
adjustments
dajmcdon Jul 12, 2024
e51d470
bump version
dajmcdon Jul 12, 2024
7eef2f4
styler
dajmcdon Jul 12, 2024
f2ce813
simplify, adjust some text
dajmcdon Jul 12, 2024
9d57a62
Merge pull request #342 from cmu-delphi/rn/improve-slide-examples
rnayebi21 Jul 12, 2024
2abbe35
no tibble in examples
dajmcdon Jul 14, 2024
a6f9cee
no tibble in examples
dajmcdon Jul 14, 2024
6837da2
Merge branch 'grf-qr-engine' of https://github.com/cmu-delphi/epipred…
dajmcdon Jul 14, 2024
8c3cf4d
doc: add a link and revise quantile_reg
dajmcdon Jul 14, 2024
1c9b308
Sometimes allow passing type, opts, ... via predict.epi_workflow()
brookslogan Jul 18, 2024
ecf2c73
Detect conflicting `type` settings in frosting construction&slather
brookslogan Jul 18, 2024
482e4a6
@inheritParams directly from predict.model_fit again
brookslogan Jul 18, 2024
249954d
Also forward type & opts when frosting isn't detected
brookslogan Jul 19, 2024
bff7c33
Add missing param docs for apply_frosting.epi_workflow; style, doc
brookslogan Jul 19, 2024
1cc1247
Use wording tricks to avoid double-doc parm in generic+methods topic
brookslogan Jul 20, 2024
2ca6ee8
Update tests & commentary given predict() arg forwarding
brookslogan Jul 25, 2024
49484bf
Update&correct NEWS.md with predict.epi_workflow() arg forwarding
brookslogan Jul 25, 2024
be15821
Recalc geo&time type after bake, avoid warning spam from as_epi_df
brookslogan Jul 26, 2024
7fd4094
Fix document() and check() warnings regarding [epiprocess::]epi_df
brookslogan Jul 26, 2024
63a520b
Merge pull request #358 from brookslogan/lcb/layer_predict-passing
dajmcdon Jul 26, 2024
974d1d9
produce empty distribution when necessary
dajmcdon Jul 29, 2024
5b5ad7d
version and news
dajmcdon Jul 29, 2024
c575018
ugly required styles
dajmcdon Jul 29, 2024
546fc70
basic implementation
dajmcdon Jul 19, 2024
6e3472f
add tests, redocument
dajmcdon Jul 24, 2024
a878ff9
bump version
dajmcdon Jul 24, 2024
233e0a9
add news
dajmcdon Jul 24, 2024
d8c08d8
styler
dajmcdon Jul 24, 2024
8408b25
remove some extraneous code
dajmcdon Jul 24, 2024
3fec57f
Apply suggestions from code review
dajmcdon Jul 25, 2024
7d22ef8
first draft of epi_slide in step_epi_slide
dsweber2 Jul 31, 2024
acc40bd
new version passes the tests
dsweber2 Jul 31, 2024
a586ce1
doc links update, example to function not formula
dsweber2 Jul 31, 2024
0d7c001
need to build the doc fix...
dsweber2 Jul 31, 2024
16f29ca
typo
dajmcdon Aug 2, 2024
475fcfc
add functions for weighted interval score
dajmcdon Aug 2, 2024
97146fd
Merge branch 'wis-dist-quantiles' into 361-dist-quantiles-null
dajmcdon Aug 2, 2024
47894fa
add to news
dajmcdon Aug 2, 2024
9702604
styler
dajmcdon Aug 2, 2024
ed60e9c
incorporate suggestions
dajmcdon Aug 2, 2024
32a2365
styler and pkgdown
dajmcdon Aug 2, 2024
740d438
refactor: step_epi_slide
dshemetov Aug 3, 2024
991d70b
Merge pull request #364 from cmu-delphi/275-step_epi_slide
dshemetov Aug 3, 2024
5ff6a6d
move func to new file, properly deal with NAs
dajmcdon Aug 9, 2024
80d204b
function in new file
dajmcdon Aug 9, 2024
86a9085
add function for na handling, allow a set of quantiles to be passed in
dajmcdon Aug 9, 2024
604b22f
tests for additional functionality
dajmcdon Aug 9, 2024
00d5c51
document
dajmcdon Aug 9, 2024
4171573
stylr
dajmcdon Aug 9, 2024
f96a1f1
documentation adjustments
dajmcdon Aug 9, 2024
5867051
merge dev
dajmcdon Aug 9, 2024
47cdfd6
merge dev
dajmcdon Aug 12, 2024
b4ae464
missing exports
dajmcdon Aug 12, 2024
193d0c8
fixing guess_time_type error
rnayebi21 Aug 13, 2024
90c89c7
updating DESCRIPTION and NEWS.md
rnayebi21 Aug 13, 2024
f5b05c5
updating NEWS.md
rnayebi21 Aug 13, 2024
55db8bb
undoing changes to news and description, as it is a small change
rnayebi21 Aug 13, 2024
3191742
Merge pull request #371 from cmu-delphi/r/fix
rnayebi21 Aug 13, 2024
4dda39a
Merge branch 'dev' into grf-qr-engine
dajmcdon Aug 27, 2024
f187192
Merge pull request #360 from cmu-delphi/grf-qr-engine
dajmcdon Aug 27, 2024
c77ea78
Merge pull request #365 from cmu-delphi/361-dist-quantiles-null
dajmcdon Aug 27, 2024
e4617d0
checks pass
dajmcdon Aug 27, 2024
c531007
bump version
dajmcdon Aug 27, 2024
a0d09f9
remove lots of extraneous prefixing
dajmcdon Aug 27, 2024
cf3e89a
remove unused function
dajmcdon Aug 27, 2024
78cd65e
remove unused funs
dajmcdon Aug 27, 2024
8d24aa1
remove prefixed funs, simplify some redundancies
dajmcdon Aug 27, 2024
d6dff90
all checks pass
dajmcdon Aug 28, 2024
2dbc212
styler
dajmcdon Aug 28, 2024
f394fde
fix vignette naming error
dajmcdon Aug 28, 2024
9a7d433
safely remove time value from epi_keys
dajmcdon Aug 28, 2024
aba9fa4
redocument, remove browser()
dajmcdon Aug 28, 2024
0976e27
geo then time, no more dropping the first element to remove time_value
dajmcdon Aug 28, 2024
a99a553
remove key_colnames.list()
dajmcdon Aug 29, 2024
dcf778c
update tests in re @dshemetov comments
dajmcdon Aug 29, 2024
bec78a2
remove / revise some silent tests
dajmcdon Aug 29, 2024
6d8edc0
styler
dajmcdon Aug 29, 2024
b4d4071
Merge pull request #373 from cmu-delphi/352-remove-all-instances-of-e…
dajmcdon Aug 29, 2024
985f6a0
feat: expose "method" arg of quantile_reg
dshemetov Sep 4, 2024
1040633
doc: document
dshemetov Sep 4, 2024
f76961c
Merge pull request #374 from cmu-delphi/ds/quantreg-method
dajmcdon Sep 9, 2024
dd9c92e
fix and add test
dajmcdon Sep 11, 2024
9b47549
bump version, news
dajmcdon Sep 11, 2024
fbceb88
try to retain the class to the extent possible
dajmcdon Sep 12, 2024
9cf5b85
bump version
dajmcdon Sep 12, 2024
4d8a24d
import rlang checks since checkmate doesn't take an environment
dajmcdon Sep 13, 2024
73579e5
current tests pass
dajmcdon Sep 19, 2024
79c56fc
replace expect_error with expect_snapshot to log the message as well
dajmcdon Sep 19, 2024
0d1064a
adjust imports and document
dajmcdon Sep 19, 2024
96d5b9f
create snapshot tests
dajmcdon Sep 19, 2024
1822985
news, bump version, run styler
dajmcdon Sep 19, 2024
f7fec68
make internal versioning accurate
dsweber2 Sep 25, 2024
070cb1d
Merge pull request #385 from cmu-delphi/epiprocessUpperBound
dshemetov Sep 26, 2024
acaca4f
add missing topic
dajmcdon Sep 27, 2024
cd12775
Merge pull request #388 from cmu-delphi/fix-failing-pkgdown
dajmcdon Sep 27, 2024
0e7d90f
fix: update for compatibility with epiprocess==0.9.0
dshemetov Sep 26, 2024
b3e3189
styler: style
dshemetov Sep 27, 2024
374cb2f
doc: fix vignettes
dshemetov Sep 27, 2024
34cb6ed
Merge pull request #386 from cmu-delphi/ds/epiprocess-0.9.0
dshemetov Sep 27, 2024
93a405e
doc: fix sliding article and verify others
dshemetov Sep 28, 2024
525618a
Merge pull request #392 from cmu-delphi/ds/fix-articles
dshemetov Sep 28, 2024
9c35fb9
Merge branch 'dev' into retain-epi_df-class
dajmcdon Sep 30, 2024
1caa549
error if not an epidf in epirecipe
dajmcdon Sep 30, 2024
37d2352
test: snapshot step_* errors
dshemetov Sep 30, 2024
7222b36
Merge branch 'dev' into 287-surface-step-name
dshemetov Sep 30, 2024
78fbaa0
repo: bump version
dshemetov Sep 30, 2024
bffc03b
redocument
dajmcdon Sep 30, 2024
65385e2
test: add new snapshots
dshemetov Sep 30, 2024
db2cfee
Merge pull request #379 from cmu-delphi/retain-epi_df-class
dshemetov Sep 30, 2024
addb2ae
repo: bump version
dshemetov Sep 30, 2024
de0add1
Merge branch 'dev' into 363-no-drop-epiwf-class
dshemetov Sep 30, 2024
1c01028
Merge pull request #377 from cmu-delphi/363-no-drop-epiwf-class
dshemetov Sep 30, 2024
1ff2efc
Merge branch 'dev' into 287-surface-step-name
dshemetov Sep 30, 2024
434262a
repo: bump version
dshemetov Sep 30, 2024
37f3ad0
Merge pull request #383 from cmu-delphi/287-surface-step-name
dajmcdon Sep 30, 2024
cebc672
repo: fix imports and remove unused standalone files
dshemetov Sep 30, 2024
f588f0a
tests: snapshot tests on errors
dshemetov Sep 30, 2024
0bb8a35
Merge pull request #395 from cmu-delphi/ds/dependencies
dajmcdon Sep 30, 2024
36c4c0a
Merge pull request #393 from cmu-delphi/ds/snapshots
dajmcdon Sep 30, 2024
aa41827
bump version, promote authors, add funder
dajmcdon Sep 30, 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
4 changes: 4 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
^epipredict\.Rproj$
^\.Rproj\.user$
^LICENSE\.md$
^DEVELOPMENT\.md$
^drafts$
^\.Rprofile$
^man-roxygen$
Expand All @@ -15,5 +16,8 @@
^data-raw$
^vignettes/articles$
^.git-blame-ignore-revs$
^DEVELOPMENT\.md$
^doc$
^Meta$
^.lintr$
^.venv$
24 changes: 24 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### Checklist

Please:

- [ ] Make sure this PR is against "dev", not "main".
- [ ] Request a review from one of the current epipredict main reviewers:
dajmcdon.
- [ ] Make sure to bump the version number in `DESCRIPTION` and `NEWS.md`.
Always increment the patch version number (the third number), unless you are
making a release PR from dev to main, in which case increment the minor
version number (the second number).
- [ ] Describe changes made in NEWS.md, making sure breaking changes
(backwards-incompatible changes to the documented interface) are noted.
Collect the changes under the next release number (e.g. if you are on
0.7.2, then write your changes under the 0.8 heading).
- [ ] Consider pinning the `epiprocess` version in the `DESCRIPTION` file if
- You anticipate breaking changes in `epiprocess` soon
- You want to co-develop features in `epipredict` and `epiprocess`

### Change explanations for reviewer

### Magic GitHub syntax to mark associated Issue(s) as resolved when this is merged into the default branch

- Resolves #{issue number}
4 changes: 2 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# Created with usethis + edited to use API key.
on:
push:
branches: [main, master]
branches: [main, dev]
pull_request:
branches: [main, master]
branches: [main, dev]

name: R-CMD-check

Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
#
# Created with usethis + edited to use API key.
# Created with usethis + edited to run on PRs to dev, use API key.
on:
push:
branches: [main, master]
branches: [main, dev]
release:
types: [published]
workflow_dispatch:
Expand All @@ -13,14 +13,16 @@ name: pkgdown

jobs:
pkgdown:
# only build docs on the main repository and not forks
if: github.repository_owner == 'cmu-delphi'
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -35,13 +37,19 @@ jobs:

- name: Build site
env:
DELPHI_EPIDATA_KEY: ${{ secrets.SECRET_EPIPREDICT_GHACTIONS_DELPHI_EPIDATA_KEY }}
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
DELPHI_EPIDATA_KEY: ${{ secrets.SECRET_EPIPROCESS_GHACTIONS_DELPHI_EPIDATA_KEY }}
run: |
if (startsWith("${{ github.event_name }}", "pull_request")) {
mode <- ifelse("${{ github.base_ref }}" == "main", "release", "devel")
} else {
mode <- ifelse("${{ github.ref_name }}" == "main", "release", "devel")
}
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE, override=list(PKGDOWN_DEV_MODE=mode))
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected].4
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
Expand Down
9 changes: 9 additions & 0 deletions .lintr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
linters: linters_with_defaults(
line_length_linter(120),
cyclocomp_linter = NULL,
object_length_linter(length = 40L)
)
exclusions: list(
"renv",
"venv"
)
30 changes: 17 additions & 13 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
Package: epipredict
Title: Basic epidemiology forecasting methods
Version: 0.0.8
Version: 0.1.0
Authors@R: c(
person("Daniel", "McDonald", , "[email protected]", role = c("aut", "cre")),
person("Daniel J.", "McDonald", , "[email protected]", role = c("aut", "cre")),
person("Ryan", "Tibshirani", , "[email protected]", role = "aut"),
person("Dmitry", "Shemetov", email = "[email protected]", role = "aut"),
person("David", "Weber", email = "[email protected]", role = "aut"),
person("CMU's Delphi Research Group", role = c("cph", "fnd")),
person("Logan", "Brooks", role = "aut"),
person("Rachel", "Lobay", role = "aut"),
person("Dmitry", "Shemetov", email = "[email protected]", role = "ctb"),
person("David", "Weber", email = "[email protected]", role = "ctb"),
person("Maggie", "Liu", role = "ctb"),
person("Ken", "Mawer", role = "ctb"),
person("Chloe", "You", role = "ctb"),
Expand All @@ -23,43 +24,46 @@ URL: https://github.com/cmu-delphi/epipredict/,
https://cmu-delphi.github.io/epipredict
BugReports: https://github.com/cmu-delphi/epipredict/issues/
Depends:
epiprocess (>= 0.6.0),
epiprocess (>= 0.9.0),
parsnip (>= 1.0.0),
R (>= 3.5.0)
Imports:
checkmate,
cli,
distributional,
dplyr,
fs,
generics,
ggplot2,
glue,
hardhat (>= 1.3.0),
lifecycle,
magrittr,
methods,
quantreg,
recipes (>= 1.0.4),
rlang,
smoothqr,
rlang (>= 1.1.0),
stats,
tibble,
tidyr,
tidyselect,
usethis,
tsibble,
vctrs,
workflows (>= 1.0.0)
Suggests:
covidcast,
data.table,
epidatr (>= 1.0.0),
ggplot2,
fs,
grf,
knitr,
lubridate,
poissonreg,
purrr,
quantreg,
ranger,
RcppRoll,
rmarkdown,
smoothqr,
testthat (>= 3.0.0),
usethis,
xgboost
VignetteBuilder:
knitr
Expand All @@ -71,4 +75,4 @@ Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.0
RoxygenNote: 7.3.2
45 changes: 45 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## Setting up the development environment

```r
install.packages(c('devtools', 'pkgdown', 'styler', 'lintr')) # install dev dependencies
devtools::install_deps(dependencies = TRUE) # install package dependencies
devtools::document() # generate package meta data and man files
devtools::build() # build package
```

## Validating the package

```r
styler::style_pkg() # format code
lintr::lint_package() # lint code

devtools::test() # test package
devtools::check() # check package for errors
```

## Developing the documentation site

The [documentation site](https://cmu-delphi.github.io/epipredict/) is built off of the `main` branch. The `dev` version of the site is available at https://cmu-delphi.github.io/epipredict/dev.

The documentation site can be previewed locally by running in R

```r
pkgdown::build_site(preview=TRUE)
```

The `main` version is available at `file:///<local path>/epidatr/epipredict/index.html` and `dev` at `file:///<local path>/epipredict/docs/dev/index.html`.

You can also build the docs manually and launch the site with python. From the terminal, this looks like

```bash
R -e 'devtools::document()'
python -m http.server -d docs
```

## Versioning

Please follow the guidelines in the [PR template document](.github/pull_request_template.md).

## Release process

TBD
Loading
Loading