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

Full package review for {bpmodels} CRAN release #79

Closed
wants to merge 267 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
267 commits
Select commit Hold shift + click to select a range
97679dc
remove spurious tests
sbfnk Jan 16, 2019
fe37188
qualify stats functions
sbfnk Jan 16, 2019
c6d27e4
update travis.yml for osx and codecov
sbfnk Jan 16, 2019
4925ccc
fix typo in appveyor.yml
sbfnk Jan 16, 2019
b7346c1
README badges
sbfnk Jan 16, 2019
d8f3e18
remove obsolete test
sbfnk Jan 16, 2019
cb5258b
give chain length test higher chance of finding length > 1
sbfnk Jan 16, 2019
2308ff3
fix simulation test
sbfnk Jan 16, 2019
5555ffb
use actual function to generate offspring instead of name
sbfnk Jan 16, 2019
48f83ce
update link for Appveyor badge
sbfnk Jan 16, 2019
0ae9393
fix typos
sbfnk Jan 16, 2019
addfa09
set seed in vignette
sbfnk Jan 16, 2019
dd31949
fix for obs_size with only one chain
sbfnk Jan 17, 2019
67bc19d
fix typo
sbfnk Jan 17, 2019
43d5c88
imperfect observation for chain lengths
sbfnk Jan 17, 2019
42d742a
simpler negative binomial sampling
sbfnk Jan 18, 2019
444b4dc
sample missed generations at the beginning and end of chains
sbfnk Jan 18, 2019
b8d4145
rbinom_size fix (no need to subtract 1)
sbfnk Jan 18, 2019
7730489
throw error for non-integer offspring distributions
sbfnk Jan 22, 2019
bf2d118
pre-allocate dist
zkamvar Feb 7, 2019
4f78a3e
Merge pull request #1 from zkamvar/patch-1
sbfnk Feb 7, 2019
f65e40f
vectorise chain simulations
sbfnk Feb 7, 2019
e22374d
documentation update
sbfnk Feb 7, 2019
f0480f0
update DESCRIPTION and NEWS
sbfnk Feb 7, 2019
466bcbd
simulate trees
sbfnk Feb 7, 2019
b0f0225
update `chain_sim` documentation
sbfnk Feb 7, 2019
bd05e51
tree simulations: fix IDs
sbfnk Feb 7, 2019
16dfadf
improved handling of excluded sizes
sbfnk Mar 7, 2019
09ef8cb
get the correct function name, even in optim etc.
sbfnk Mar 7, 2019
d512afb
exclude sizes in likelihood as desired
sbfnk Aug 17, 2019
3617f47
Likelihood: allow passing string for offspring
sbfnk Aug 19, 2019
4311dd2
likelihoods: don't allow passing offspring functions
sbfnk Aug 19, 2019
fd5c0d8
simulate serial intervals
sbfnk Jan 24, 2020
e84891e
fix bug in `infinite` argument
sbfnk Jan 24, 2020
e7c6d6f
roxygen update
sbfnk Jan 24, 2020
aadf40e
fix for error where 'current_min_time' is not found
sbfnk Jan 24, 2020
6de58a2
rendered vignette
sbfnk Jan 28, 2020
f39cc7f
simulator function accounting for susceptible depletion
ffinger Mar 4, 2020
da842ca
implemented tests and improved argument checking
ffinger Mar 7, 2020
3d48c60
removed extraDistr dependency and test that sometimes fails
ffinger Mar 10, 2020
466896d
Merge pull request #2 from ffinger/master
sbfnk Mar 10, 2020
c46eb56
Replace travis CI with GHA (#24)
jamesmbaazam Jan 25, 2023
45a4822
Revised chain_sim() documentation (#14)
jamesmbaazam Jan 26, 2023
16b5de5
Removed error when tree = FALSE and serial specified (#20)
jamesmbaazam Jan 27, 2023
aca8771
Tests and updated error messaging (#19)
jamesmbaazam Jan 27, 2023
9658374
fixed covr badge pointing to master (#26)
jamesmbaazam Jan 27, 2023
1d5a908
gitignore
Jan 5, 2023
9b28b14
removed references.bib.sav
Jan 13, 2023
bf1ddec
skeletal version of vignette about projecting incidence
Jan 14, 2023
744fe76
added a bib file for the references
Jan 17, 2023
6cd4c4f
updated vignette
Jan 17, 2023
ebcfb54
setting up the new vignette
Jan 18, 2023
6381a95
updated DESC packages to include vignette requirements
Jan 18, 2023
6db065e
added a bibliography of branching process applciations to outbreaks
Jan 26, 2023
195c29f
added a vignette on branching process theory
Jan 26, 2023
9dd7d0e
removed CI files and code of conduct
Jan 27, 2023
86b229b
removed draft vignette on branching process theory
Jan 30, 2023
3c33e35
moved introduction vignette to README quick start
Jan 30, 2023
67644e8
updated README
Feb 1, 2023
f923b96
added more dependencies
Feb 3, 2023
a5881a0
added more references to bib lib
Feb 3, 2023
dae4dea
added the covid-19 SA data and associated doc
Feb 3, 2023
5ab97bf
changed the vignette title
Feb 3, 2023
5c37fc9
updated section on specifying serial interval
Feb 3, 2023
0bc64c4
changed x- & y-axis, theme label customizations
Feb 3, 2023
3b16119
generated basic package-level documentation.
Feb 6, 2023
ff087bf
updated bib lib
Feb 6, 2023
881e55e
updated the title
Feb 6, 2023
6e0b1bd
updated the title
Feb 6, 2023
63a8b3b
updated the overview section
Feb 6, 2023
bf3a521
revised typesetting lognormal mean and SD
Feb 6, 2023
7495c93
added a reference for dispersion param, k
Feb 6, 2023
1455e83
updated plot caption and axes scales
Feb 6, 2023
03c1fc2
generated the package doc Rd file
Feb 6, 2023
3ae929d
removed bp_literature vignette (not necessarily)
Feb 7, 2023
4ce514d
removed introduction vignette (content moved elsewhere)
Feb 7, 2023
28440c1
removed a trailing ellipsis
Feb 7, 2023
82ef9d9
removed an unnecessary ellipsis
Feb 7, 2023
7b5fa1f
added a new line
Feb 7, 2023
8612397
revised the description of chain_sim()
Feb 7, 2023
6769f9b
added calls to loaded packages
Feb 7, 2023
43a3500
stoppped suppressing warnings on package load
Feb 9, 2023
41e928a
added lintr
Feb 9, 2023
81200e4
minor formatting of overview lines over 80 chars
Feb 9, 2023
919b3dc
replaced rbind with bind_rows for uniformity
Feb 9, 2023
74a634a
removed namespacing and hardcoding of filter date
Feb 9, 2023
8b8f119
generated Rd files
Feb 9, 2023
355eb36
removed namespacing
Feb 9, 2023
13b46ff
updated the vignette
Feb 9, 2023
c1e2202
fixed url
Feb 10, 2023
548b415
added lintr workflow for changed files
Feb 10, 2023
c01de4c
fixed wrong reference to chain_ll() as chains_ll()
Feb 10, 2023
439f284
revised wrongly stated probability
Feb 10, 2023
4be39a0
polished some grammar
Feb 10, 2023
19166cf
explicitly set
Feb 10, 2023
5be8715
Generated README.md
Feb 10, 2023
05decc7
updated .gitignore
Feb 10, 2023
a6489f7
deleted introduction vignette
Feb 10, 2023
f254355
turned off some lints
Feb 10, 2023
3a086b6
removed .R file from vignettes
Feb 10, 2023
fdf7526
styled the R/files
Feb 10, 2023
487be15
styled the /man/ files
Feb 10, 2023
a994eb6
styled files in data-raw/ and tests/
Feb 10, 2023
23055b3
changed single quote to double quote
Feb 10, 2023
c1cb6d2
broke long lines to be shorter than 80 chars
Feb 10, 2023
b3bbed1
remove trailing shite space
Feb 10, 2023
75712d2
removed trailing whitespace linting
Feb 10, 2023
10d7361
added .lintr to .Rbuildignore
Feb 10, 2023
bd93e56
removed extra bookdown item in Suggests
Feb 10, 2023
7809425
updated .Rbuildignore
Feb 10, 2023
d924aec
removed given name
Feb 10, 2023
8547c04
fixed uncommented example section causing errors in checks
Feb 10, 2023
ba0e70a
turning off cyclocomp_linter for next PR
Feb 10, 2023
856e491
updated lint_changed_files with version from package template
Feb 14, 2023
b08e840
updated lintr with version from package template
Feb 14, 2023
b698422
fixed wrong call to linters
Feb 14, 2023
9225a1a
fixed lintr to help pass checks
Feb 14, 2023
46419dc
fixed lintr to help pass checks
Feb 14, 2023
36add89
fixed new line issue
Feb 15, 2023
1ad16ef
fixed R version specification
Feb 15, 2023
c6b4572
Updated README.Rmd
jamesmbaazam Feb 20, 2023
5426b18
Updated README.Rmd
jamesmbaazam Feb 20, 2023
37018d5
Updated README.Rmd
jamesmbaazam Feb 20, 2023
544fd87
Updated README.Rmd
jamesmbaazam Feb 20, 2023
4c14138
Updated README.Rmd
jamesmbaazam Feb 20, 2023
48a3563
Updated vignettes/projecting_incidence.Rmd
jamesmbaazam Feb 20, 2023
ad38a17
Updated vignette
jamesmbaazam Feb 21, 2023
0956718
updated README
Feb 21, 2023
916fbd1
updated vignette
Feb 21, 2023
3ff710d
Updated a function doc
Feb 22, 2023
4a8bab8
modified the data
Feb 28, 2023
29795ab
removed dpi setting
Feb 28, 2023
efdcffa
revised the overview
Feb 28, 2023
8d49c7c
reworded the inputs setup section
Feb 28, 2023
af0b118
clarified lognormal distribution usage and adopted epiparameter
Feb 28, 2023
0683309
explained negbin epidemiology application and split up inputs section…
Feb 28, 2023
c7fa79b
Revised summary of simulation set up
Feb 28, 2023
c39a3f3
Added a chunk to examine head of simulation output
Feb 28, 2023
41193e9
Split up post-processing into smaller chunks
Feb 28, 2023
42ef4fc
Modified the plot
Feb 28, 2023
955eb9c
Metadata from vignette
Feb 28, 2023
db40b13
Revised section on simulating branching processes
jamesmbaazam Mar 1, 2023
5ffeeea
Changed the vignette title
jamesmbaazam Mar 1, 2023
0cfec16
Revised the overview
jamesmbaazam Mar 1, 2023
668c4f3
Revised description of setup of onset times linelist
jamesmbaazam Mar 1, 2023
79b53cf
Revised description of serial interval set up
jamesmbaazam Mar 1, 2023
0dff335
Replaced hyperlinks with citations
jamesmbaazam Mar 1, 2023
1c2b06e
Made individual trajectories thinner
jamesmbaazam Mar 1, 2023
840e6d8
Styled plotting code
jamesmbaazam Mar 1, 2023
64362e5
Added new references to bibtex library
jamesmbaazam Mar 1, 2023
7781203
Edited chain_ll's @seealso tags
jamesmbaazam Mar 1, 2023
bed2eb9
Increased R dependency to >= 3.0
jamesmbaazam Mar 1, 2023
8da0cc9
Added epiparameter to the dependencies
jamesmbaazam Mar 1, 2023
e8649a7
Removed namespacing of epiparameter
jamesmbaazam Mar 1, 2023
4d5eb50
Added epiparameter to loaded packages
jamesmbaazam Mar 1, 2023
9f11dfe
Regenerated docs for chain_sim and chain_ll
jamesmbaazam Mar 1, 2023
19fa1cf
lintr: changed expect_equal to expect_identical
jamesmbaazam Mar 1, 2023
4e6c4f4
lintr: removed loading of bpmodels from testthat
jamesmbaazam Mar 1, 2023
d961ac7
lintr: replaced expect_true of data.frame output to expect_s3_class
jamesmbaazam Mar 1, 2023
a6a3a7e
lintr: replaced expect_true tests with expect_equal
jamesmbaazam Mar 1, 2023
d1bbd14
lintr: fixed minor styling issues
jamesmbaazam Mar 1, 2023
b14b25c
lintr: replaced explicit paths with file.path
jamesmbaazam Mar 1, 2023
d91301a
removed trailing white space
jamesmbaazam Mar 1, 2023
6132ac9
lintr: removed commented out code
jamesmbaazam Mar 1, 2023
a288120
lintr: replaced c() with vector()
jamesmbaazam Mar 1, 2023
dcf2a26
lintr: replaced arg = c() with arg = NULL
jamesmbaazam Mar 1, 2023
2e3f2e8
lintr: styled README to break long lines
jamesmbaazam Mar 1, 2023
3895ef9
lintr: removed newlines and trailing white space
jamesmbaazam Mar 1, 2023
012fb8b
lintr: replaced single quotes with double quotes
jamesmbaazam Mar 1, 2023
93f1378
lintr: styled the plotting code
jamesmbaazam Mar 1, 2023
3006da5
rebuilt the readme
jamesmbaazam Mar 1, 2023
ff485db
lintr: fixed contributor list
jamesmbaazam Mar 1, 2023
9bb8d42
Failing checks: added epiparameter remotes
jamesmbaazam Mar 1, 2023
d20a386
Failing checks: Loaded usethis
jamesmbaazam Mar 1, 2023
00f2673
added usethis ad dependency
jamesmbaazam Mar 2, 2023
5ccf3ba
removed trailing whitespace
jamesmbaazam Mar 2, 2023
df60f20
changed expect_equal to expect_identical and made expected an integer
jamesmbaazam Mar 2, 2023
90bec53
removed deprecated testthat contexts
jamesmbaazam Mar 6, 2023
251ddd1
added GHA for Rmd readme
jamesmbaazam Mar 6, 2023
0d71505
linked covidza data to commit
jamesmbaazam Mar 6, 2023
3988a6c
added a contribution guide and templates for submitting issues and PR
jamesmbaazam Mar 6, 2023
3f0b545
matched package version in DESCRIPTION with news.md
jamesmbaazam Mar 6, 2023
bfaa7b8
updated README with link to contribution guide
jamesmbaazam Mar 6, 2023
c859058
removed non-existent path from workflow
jamesmbaazam Mar 6, 2023
798cbdc
changed maintainer to James
jamesmbaazam Mar 7, 2023
f859196
removed some badges and fixed license badge
jamesmbaazam Mar 7, 2023
b01536b
Automatic readme update
actions-user Mar 7, 2023
53e35c7
formatted the contributor details and added ORCHID IDs
jamesmbaazam Mar 8, 2023
04c47f2
Standardized all warnings and errors to sentence case
jamesmbaazam Mar 7, 2023
a079ceb
Added input validation to stop when "nbinom" offspring is specified b…
jamesmbaazam Mar 7, 2023
d9d3058
replaced paste() with sprintf() in constructed messages
jamesmbaazam Mar 8, 2023
aaec3ec
updated NEWS with new changes in release
jamesmbaazam Mar 6, 2023
db44913
incremented version to 0.2.0
jamesmbaazam Mar 7, 2023
12b1e15
updated changelog for the minor release
jamesmbaazam Mar 7, 2023
17523c3
removed erroneous version number
jamesmbaazam Mar 8, 2023
4e8b35a
Added patterns to enable Github count .Rmd files as R code
jamesmbaazam Mar 8, 2023
141b565
Updated rbuild ignore files
jamesmbaazam Mar 8, 2023
1e1809c
updated the pattern instruction for Github linguist
jamesmbaazam Mar 8, 2023
c72aa26
Updated pattern for Github linguist
jamesmbaazam Mar 8, 2023
a20d1de
Updated pattern for Gihub linguist to detect .md and .Rmd files
jamesmbaazam Mar 8, 2023
3a1f1ff
Set linguist to detect .rmd and .md files as R (#46)
jamesmbaazam Mar 9, 2023
6f3556a
Set linguist to vignette files in repo language stats (#47)
jamesmbaazam Mar 9, 2023
f3689b0
rephrased the package title
jamesmbaazam Apr 21, 2023
89bd118
rendered readme to reflect rephrased package title
jamesmbaazam Apr 21, 2023
d95f211
added citation files
jamesmbaazam Apr 21, 2023
4a57872
change error to warning
jamesmbaazam Mar 28, 2023
12ff7c7
added tests for change in chain_sim
jamesmbaazam Mar 28, 2023
4a10c51
Assigned tree to TRUE after throwing warning
jamesmbaazam Apr 4, 2023
7be58e1
bumped up R version
jamesmbaazam Apr 4, 2023
5e41267
bumped up the version number
jamesmbaazam Apr 21, 2023
3b18492
updated the changelog
jamesmbaazam Apr 21, 2023
ae8589a
replaced bibtex library with csl-json
jamesmbaazam May 22, 2023
38d05ff
Changed extension from .bib to json
jamesmbaazam May 22, 2023
cace31f
Deleted .bib file
jamesmbaazam May 22, 2023
d77d7b3
replaced old library with new one exported as csl-json
jamesmbaazam May 22, 2023
8c55ac6
changed the bibtex keys to align with new library
jamesmbaazam May 22, 2023
ae24211
replaced the function with to reflect change in epiparameter's devel…
jamesmbaazam May 22, 2023
a2c7dd7
reset github linguist
jamesmbaazam May 22, 2023
e63bd8c
Remove dependency of development packages
Bisaloo Jun 6, 2023
54674d9
removed quickstart from README and fleshed out remaining body
jamesmbaazam May 22, 2023
131562e
added an introduction to bpmodels vignette to be rendered on the website
jamesmbaazam May 22, 2023
091d6df
Ignore pkgdown.yml during build
jamesmbaazam May 22, 2023
7d68cb8
modified the website style
jamesmbaazam May 22, 2023
417cee2
updated the render_readme workflow to add README figures if they exist
jamesmbaazam May 22, 2023
b20a217
updated git ignore
jamesmbaazam May 22, 2023
96c72f1
Slightly edited the rborel function title
jamesmbaazam May 23, 2023
82bcc71
Slightly edited the title of chain_ll for website cleanup
jamesmbaazam May 23, 2023
41a667d
grouped the functions into topics under the reference of the website
jamesmbaazam May 23, 2023
274acca
turned off evaluation of pkg installation in README
jamesmbaazam May 23, 2023
2e9b3a5
rendered README to .md
jamesmbaazam May 23, 2023
9fa4e9a
edited the getting started vignette
jamesmbaazam May 23, 2023
6937892
NEW VIGNETTE: added a new vignette listing studies that applied branc…
jamesmbaazam May 23, 2023
0755ef8
bumped up the minor version
jamesmbaazam May 23, 2023
b75baeb
added news items to describe changes
jamesmbaazam May 23, 2023
92baeb3
linting: indented the old news and removed trailing whitespaces
jamesmbaazam May 23, 2023
3c5802b
Updated vignettes/bpmodels.Rmd
jamesmbaazam May 25, 2023
addc6bc
Updated README.Rmd
jamesmbaazam May 25, 2023
b6e9a9e
Updated _pkgdown.yml to use the epiverse theme for streaming changes …
jamesmbaazam May 25, 2023
009a184
added epiverse theme config to DESCRIPTION
jamesmbaazam May 25, 2023
798469e
Resolved conflict in DESCRIPTION
jamesmbaazam May 25, 2023
9619615
Added new papers to branching process applications list
jamesmbaazam May 25, 2023
384fd4a
removed duplicate template key in pkgdown yaml
jamesmbaazam May 25, 2023
6647806
Fixed "Get started" link
jamesmbaazam Jun 20, 2023
1cb2673
Added quick examples to core functionality list
jamesmbaazam Jun 20, 2023
dbf6037
Removed backticks
jamesmbaazam Jun 20, 2023
582c680
Corrected title in the VignetteIndexEntry to align with vignette title
jamesmbaazam Jun 20, 2023
055ac55
Rendered README to markdown
jamesmbaazam Jun 20, 2023
06ed75a
Corrected the chain_sim example to say a warning, instead of an error…
jamesmbaazam Jun 20, 2023
653d8df
update vignette filename
sbfnk Jun 21, 2023
3107fd6
add Ratnayake et al reference
sbfnk Jun 21, 2023
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
17 changes: 17 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
^.*\.Rproj$
^\.Rproj\.user$
^LICENSE\.md$
^\.github$
^codecov\.yml$
^README\.Rmd$
^\.lintr$
^\.gitattributes$
^\_pkgdown.yml$
^cran-comments\.md$
^doc$
^docs$
^Meta$
^pkgdown$
^data-raw$
^CITATION\.cff$
^_pkgdown\.yml$
Empty file added .gitattributes
Empty file.
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
51 changes: 51 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Contributing to bpmodels

This outlines how to propose a change to bpmodels.

## Making changes

If you want to make a change, it's a good idea to first file an issue and make
sure someone from the team agrees that it’s needed.
If you’ve found a bug, please file an issue that illustrates the bug with
a minimal [reprex](https://www.tidyverse.org/help/#reprex) (this will also
help you write a unit test, if needed). See [bug report template](../.github/ISSUE_TEMPLATE/bug_report.md). If you have a
feature request see [feature request](../.github/ISSUE_TEMPLATE/feature_request.md).

### Pull request process

See [pull request template](../.github/PULL_REQUEST_TEMPLATE/pull_request_template.md)

* Fork the package and clone onto your computer. If you haven't done
this before, we recommend using `usethis::create_from_github("epiverse-trace/bpmodels", fork = TRUE)`.

* Install all development dependencies with `devtools::install_dev_deps()`,
and then make sure the package passes R CMD check by running `devtools::check()`.
If R CMD check doesn't pass cleanly, it's a good idea to ask for
help before continuing.
* Create a Git branch for your pull request (PR). We recommend using `usethis::pr_init("brief-description-of-change")`.

* Make your changes, commit to git, and then create a PR by running `usethis::pr_push()`, and following the prompts in your browser.
The title of your PR should briefly describe the change.
The body of your PR should contain `Fixes #issue-number`.

* For user-facing changes, add a bullet to the top of `NEWS.md` (i.e. just
below the first header). Follow the style described in <https://style.tidyverse.org/news.html>.

### Code style

* New code should follow the tidyverse [style guide](https://style.tidyverse.org).
You can use the [styler](https://CRAN.R-project.org/package=styler)
package to apply these styles, but please don't restyle code that has
nothing to do with your PR.

* We use [roxygen2](https://cran.r-project.org/package=roxygen2), with [Markdown syntax](https://cran.r-project.org/web/packages/roxygen2/vignettes/rd-formatting.html), for documentation.

* We use [testthat](https://cran.r-project.org/package=testthat) for
unit tests.
Contributions with test cases included are easier to accept.

## Code of Conduct

Please note that `bpmodels` is released with a
[Contributor Code of Conduct](https://github.com/epiverse-trace/.github/blob/main/CODE_OF_CONDUCT.md). By contributing to this
project you agree to abide by its terms.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

Please place an "x" in all the boxes that apply
---------------------------------------------

- [ ] I have the most recent version of bpmodels and R
- [ ] I have found a bug
- [ ] I have a [reproducible example](http://reprex.tidyverse.org/articles/reprex-dos-and-donts.html)
- [ ] I want to request a new feature

--------

Please include a brief description of the problem with a code example:

```r
# insert reprex here
```

---------
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. E.g., I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Additional context**
Add any other context or screenshots about the feature request here.
25 changes: 25 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
* **Please check if the PR fulfils these requirements**

- [ ] I have read the CONTRIBUTING guidelines
- [ ] The commit message follows our guidelines
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)


* **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)



* **What is the current behaviour?** (You can also link to an open issue here)



* **What is the new behaviour (if this is a feature change)?**



* **Does this PR introduce a breaking change?** (What changes might users need to make in their application due to this PR?)



* **Other information**:
49 changes: 49 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v3

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

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
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
with:
upload-snapshots: true
45 changes: 45 additions & 0 deletions .github/workflows/lint_changed_files.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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
on:
pull_request:
branches: [main, master]

name: lint-changed-files

jobs:
lint-changed-files:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3

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

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::gh
any::lintr
any::purrr
epiverse-trace/etdev
needs: check

- name: Add lintr options
run: |
cat('\noptions(lintr.linter_file = ".lintr")\n', file = "~/.Rprofile", append = TRUE)
shell: Rscript {0}

- name: Install package
run: R CMD INSTALL .

- name: Extract and lint files changed by this PR
run: |
files <- gh::gh("GET https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files")
changed_files <- purrr::map_chr(files, "filename")
all_files <- list.files(recursive = TRUE)
exclusions_list <- as.list(setdiff(all_files, changed_files))
lintr::lint_package(exclusions = exclusions_list)
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
46 changes: 46 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
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@v3

- uses: r-lib/actions/setup-pandoc@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::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
folder: docs
52 changes: 52 additions & 0 deletions .github/workflows/render_readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Name of the workflow
name: render-readme

# Controls when the action will run. Triggers include:
#
# - button trigger from github action page
# - on changes to readme.Rmd

on:
workflow_dispatch:
push:
paths:
- 'README.Rmd'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
render-readme:
runs-on: macos-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repos
uses: actions/checkout@v2

- name: Setup R
uses: r-lib/actions/setup-r@v2

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

- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rmarkdown, local::.

- name: Compile the readme
run: |
rmarkdown::render("README.Rmd")
shell: Rscript {0}

- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md
# Also add README figures if they exist
if [ -d man/figures ]
then
git add man/figures/
fi
git diff-index --quiet HEAD || git commit -m "Automatic readme update"
git push origin || echo "No changes to push"
50 changes: 50 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: test-coverage

jobs:
test-coverage:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3

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

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

- name: Test coverage
run: |
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
)
shell: Rscript {0}

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
Loading