-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updating packages and fixing cookies link to not conflict with master cookies info * Adding acceptable GBP symbol encoding * Updating shinytests to be in line with bslib value boxes * Update lintr * Added CHROMOTE_HEADLESS=new to automated tests workflow * Lintr workflow behaving weirdly, so re-initialised it using usethis::use_github_action * Switching to lint_dir in workflow script from lint_package * Adding necessary environment in lintr workflow * Cleaned up beta banner
- Loading branch information
Showing
14 changed files
with
153 additions
and
177 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
^renv$ | ||
^renv\.lock$ | ||
^\.github$ |
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 @@ | ||
*.html |
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,56 @@ | ||
# 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: | ||
|
||
name: lint.yaml | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- name: Install git2r dependencies | ||
run: sudo apt-get install -y libgit2-dev | ||
|
||
- name: Install proj library (terra depdencies) | ||
run: sudo apt-get install libproj-dev | ||
|
||
- name: Install gdal library (terra dependencies) | ||
run: sudo apt-get install libgdal-dev | ||
|
||
- name: Install udunits library (units dependencies) | ||
run: sudo apt-get install libudunits2-dev | ||
|
||
- name: Cache renv packages | ||
id: cache-renv | ||
uses: actions/cache@v4 | ||
with: | ||
path: cache-renv | ||
key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-renv- | ||
- uses: r-lib/actions/setup-renv@v2 | ||
|
||
- name: Restore renv snapshot | ||
shell: Rscript {0} | ||
run: | | ||
if (!requireNamespace("lintr", quietly = TRUE)) install.packages("lintr") | ||
- name: Lint | ||
run: lintr::lint_dir() | ||
shell: Rscript {0} | ||
env: | ||
LINTR_ERROR_ON_LINT: true |
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
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
Oops, something went wrong.