-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #489 from cmu-delphi/dev
release: v0.8
- Loading branch information
Showing
116 changed files
with
9,610 additions
and
6,306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,7 @@ | |
^pkgdown$ | ||
^doc$ | ||
^Meta$ | ||
^.git-blame-ignore-revs$ | ||
^.lintr$ | ||
^DEVELOPMENT.md$ | ||
man-roxygen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Move to styler | ||
c65876078a6f9525952b305eaea2fca003adf907 | ||
# Move to lintr | ||
0c8144e0e9deb79547eb523298d782926a7337a6 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" (unless this is a release | ||
PR). | ||
- [ ] Request a review from one of the current main reviewers: | ||
brookslogan, nmdefries. | ||
- [ ] Makes sure to bump the version number in `DESCRIPTION`. 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 | ||
1.7.2, then write your changes under the 1.8 heading). | ||
- See [DEVELOPMENT.md](DEVELOPMENT.md) for more information on the development | ||
process. | ||
|
||
### 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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# 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 | ||
# | ||
# Modifications: | ||
# - devtools::build_readme() | ||
# - workflow_dispatch added to allow manual triggering of the workflow | ||
# - trigger branches changed | ||
# - API key secrets.DELPHI_GITHUB_ACTIONS_EPIDATA_API_KEY | ||
on: | ||
push: | ||
paths: ["R/**", "README.Rmd"] | ||
workflow_dispatch: | ||
|
||
name: Document | ||
|
||
jobs: | ||
document: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
DELPHI_EPIDATA_KEY: ${{ secrets.DELPHI_GITHUB_ACTIONS_EPIDATA_API_KEY }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- name: Install dependencies | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: | | ||
any::devtools | ||
any::roxygen2 | ||
needs: | | ||
devtools | ||
roxygen2 | ||
- name: Document | ||
run: roxygen2::roxygenise() | ||
shell: Rscript {0} | ||
|
||
- name: Build README.md from README.Rmd | ||
run: Rscript -e 'if (file.exists("README.Rmd")) devtools::build_readme()' | ||
|
||
- name: Commit and push changes | ||
run: | | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git add README.md | ||
git add man/\* NAMESPACE DESCRIPTION | ||
git commit -m "docs: document (GHA)" || echo "No changes to commit" | ||
git pull --rebase | ||
git push origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# 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 | ||
# | ||
# Modifications: | ||
# * workflow_dispatch added to allow manual triggering of the workflow | ||
# * trigger branches changed | ||
# * API key secrets.DELPHI_GITHUB_ACTIONS_EPIDATA_API_KEY | ||
on: | ||
push: | ||
branches: [main, dev] | ||
pull_request: | ||
branches: [main, dev] | ||
workflow_dispatch: | ||
|
||
name: Lint | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
DELPHI_EPIDATA_KEY: ${{ secrets.DELPHI_GITHUB_ACTIONS_EPIDATA_API_KEY }} | ||
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::lintr, local::. | ||
needs: lint | ||
|
||
- name: Lint | ||
run: lintr::lint_package() | ||
shell: Rscript {0} | ||
env: | ||
LINTR_ERROR_ON_LINT: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# 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 | ||
# | ||
# Modifications: | ||
# * workflow_dispatch added to allow manual triggering of the workflow | ||
# * trigger branches changed | ||
# * API key secrets.DELPHI_GITHUB_ACTIONS_EPIDATA_API_KEY | ||
on: | ||
push: | ||
paths: | ||
[ | ||
"**.[rR]", | ||
"**.[qrR]md", | ||
"**.[rR]markdown", | ||
"**.[rR]nw", | ||
"**.[rR]profile", | ||
] | ||
workflow_dispatch: | ||
|
||
name: Style | ||
|
||
jobs: | ||
style: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
DELPHI_EPIDATA_KEY: ${{ secrets.DELPHI_GITHUB_ACTIONS_EPIDATA_API_KEY }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- name: Install dependencies | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::styler, any::roxygen2 | ||
needs: styler | ||
|
||
- name: Enable styler cache | ||
run: styler::cache_activate() | ||
shell: Rscript {0} | ||
|
||
- name: Determine cache location | ||
id: styler-location | ||
run: | | ||
cat( | ||
"location=", | ||
styler::cache_info(format = "tabular")$location, | ||
"\n", | ||
file = Sys.getenv("GITHUB_OUTPUT"), | ||
append = TRUE, | ||
sep = "" | ||
) | ||
shell: Rscript {0} | ||
|
||
- name: Cache styler | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.styler-location.outputs.location }} | ||
key: ${{ runner.os }}-styler-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-styler- | ||
${{ runner.os }}- | ||
- name: Style | ||
run: styler::style_pkg() | ||
shell: Rscript {0} | ||
|
||
- name: Commit and push changes | ||
run: | | ||
if FILES_TO_COMMIT=($(git diff-index --name-only ${{ github.sha }} \ | ||
| egrep --ignore-case '\.(R|[qR]md|Rmarkdown|Rnw|Rprofile)$')) | ||
then | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git commit ${FILES_TO_COMMIT[*]} -m "style: styler (GHA)" | ||
git pull --rebase | ||
git push origin | ||
else | ||
echo "No changes to commit." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,9 @@ inst/doc | |
docs | ||
/doc/ | ||
/Meta/ | ||
*.DS_Store | ||
*.DS_Store | ||
|
||
# Delphi custom | ||
renv/ | ||
renv.lock | ||
.Rprofile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
) |
Oops, something went wrong.