-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/development'
- Loading branch information
Showing
9 changed files
with
4,297 additions
and
140 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,2 @@ | ||
*.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- development | ||
push: | ||
branches: | ||
- master | ||
- development | ||
paths: | ||
- .github/workflows/render-module-rmd.yaml | ||
- Biomass_regeneration.Rmd | ||
- Biomass_regeneration.R | ||
|
||
name: Render module Rmd | ||
|
||
jobs: | ||
render: | ||
if: "!contains(github.event.commits[0].message, '[skip-ci]')" | ||
name: Render module Rmd | ||
runs-on: ubuntu-20.04 | ||
|
||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
Ncpus: 2 | ||
|
||
- name: Install additional system dependencies | ||
run: | | ||
sudo apt-get install -y \ | ||
libcurl4-openssl-dev \ | ||
libgdal-dev \ | ||
libgeos-dev \ | ||
libgit2-dev \ | ||
libglpk-dev \ | ||
libmagick++-dev \ | ||
libproj-dev \ | ||
libudunits2-dev \ | ||
libxml2-dev \ | ||
python3-gdal | ||
- uses: PredictiveEcology/actions/install-Require@v0 | ||
with: | ||
GitTag: '5c44205bf407f613f53546be652a438ef1248147' | ||
|
||
- uses: PredictiveEcology/actions/install-SpaDES@v0 | ||
|
||
- uses: PredictiveEcology/actions/install-Rmd-pkgs@v0 | ||
|
||
- name: Install additional packages | ||
run: | | ||
options(repos = c(CRAN = "https://packagemanager.rstudio.com/all/__linux__/focal/latest", CRAN = "https://cran.rstudio.com")) | ||
Require::Require(c("PredictiveEcology/LandR@development"), require = FALSE) | ||
shell: Rscript {0} | ||
|
||
- name: Render module Rmd | ||
run: | | ||
rmarkdown::render("Biomass_regeneration.Rmd", encoding = "UTF-8") | ||
shell: Rscript {0} | ||
|
||
- name: Commit results | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "GitHub Actions" | ||
git commit Biomass_regeneration.html -m 'Re-build Biomass_regeneration.Rmd' || echo "No changes to commit" | ||
git push https://${{github.actor}}:${{secrets.GITHUB_TOKEN}}@github.com/${{github.repository}}.git HEAD:${{github.ref}} || echo "No changes to commit" |
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 |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
.Rhistory | ||
.RData | ||
.Ruserdata | ||
|
||
Biomass_regeneration2.Rmd |
Large diffs are not rendered by default.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.