-
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.
- Loading branch information
Showing
1 changed file
with
15 additions
and
49 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 |
---|---|---|
|
@@ -50,53 +50,21 @@ jobs: | |
|
||
- name: Install package | ||
run: R CMD INSTALL . | ||
|
||
- name: Generate html files | ||
run: | | ||
Rscript -e "rmarkdown::render('vignettes/rSPDE.Rmd')" | ||
Rscript -e "rmarkdown::render('vignettes/rspde_cov.Rmd')" | ||
Rscript -e "rmarkdown::render('vignettes/rspde_inla.Rmd')" | ||
Rscript -e "rmarkdown::render('vignettes/rspde_base.Rmd')" | ||
Rscript -e "rmarkdown::render('vignettes/rspde_inlabru.Rmd')" | ||
Rscript -e "rmarkdown::render('vignettes/build_source.rmd')" | ||
git add vignettes | ||
git add vignettes/rSPDE.html | ||
git add vignettes/rspde_base.html | ||
git add vignettes/rspde_cov.html | ||
git add vignettes/rspde_inla.html | ||
git add vignettes/rspde_inlabru.html | ||
git add vignettes/build_source.html | ||
- name: Finish the setup | ||
|
||
- name: Delete vignettes and pkgdown, then copy cran vign | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
sed -i .bak 's/knitr/R.rsp/' DESCRIPTION | ||
touch vignettes/rSPDE.html.asis | ||
echo "%\VignetteIndexEntry{An introduction to the rSPDE package}" >> vignettes/rSPDE.html.asis | ||
echo "%\VignetteEngine{R.rsp::asis}" >> vignettes/rSPDE.html.asis | ||
echo "%\VignetteEncoding{UTF-8}" >> vignettes/rSPDE.html.asis | ||
touch vignettes/build_source.html.asis | ||
echo "%\VignetteIndexEntry{Building the rSPDE package from source on Mac and Linux}" >> vignettes/build_source.html.asis | ||
echo "%\VignetteEngine{R.rsp::asis}" >> vignettes/build_source.html.asis | ||
echo "%\VignetteEncoding{UTF-8}" >> vignettes/build_source.html.asis | ||
touch vignettes/rspde_inla.html.asis | ||
echo "%\VignetteIndexEntry{R-INLA implementation of the rational SPDE approach}" >> vignettes/rspde_inla.html.asis | ||
echo "%\VignetteEngine{R.rsp::asis}" >> vignettes/rspde_inla.html.asis | ||
echo "%\VignetteEncoding{UTF-8}" >> vignettes/rspde_inla.html.asis | ||
touch vignettes/rspde_inlabru.html.asis | ||
echo "%\VignetteIndexEntry{inlabru implementation of the rational SPDE approach}" >> vignettes/rspde_inlabru.html.asis | ||
echo "%\VignetteEngine{R.rsp::asis}" >> vignettes/rspde_inlabru.html.asis | ||
echo "%\VignetteEncoding{UTF-8}" >> vignettes/rspde_inlabru.html.asis | ||
touch vignettes/rspde_cov.html.asis | ||
echo "%\VignetteIndexEntry{Rational approximation with the rSPDE package}" >> vignettes/rspde_cov.html.asis | ||
echo "%\VignetteEngine{R.rsp::asis}" >> vignettes/rspde_cov.html.asis | ||
echo "%\VignetteEncoding{UTF-8}" >> vignettes/rspde_cov.html.asis | ||
touch vignettes/rspde_base.html.asis | ||
echo "%\VignetteIndexEntry{Operator-based rational approximation}" >> vignettes/rspde_base.html.asis | ||
echo "%\VignetteEngine{R.rsp::asis}" >> vignettes/rspde_base.html.asis | ||
echo "%\VignetteEncoding{UTF-8}" >> vignettes/rspde_base.html.asis | ||
echo "^vignettes/.*\.Rmd$" >> .Rbuildignore | ||
git config --local user.name "GitHub Actions" | ||
git rm -rf vignettes | ||
git rm -rf pkgdown/ | ||
git rm -rf examples | ||
rm -rf vignettes | ||
mkdir vignettes | ||
cd cran_vignettes | ||
cp * ../vignettes | ||
cd .. | ||
git rm -rf cran_vignettes | ||
git add vignettes | ||
sed -i .bak 's/#devel\.tag/#stable\.tag/' R/inla_rspde.R | ||
sed -i .bak '/donttest{ #devel version$/a\ | ||
#'\'' tryCatch({ | ||
|
@@ -115,16 +83,14 @@ jobs: | |
#'\'' }, error = function(e){print("Could not run the example")}) | ||
' R/inlabru_rspde.R | ||
sed -i .bak 's/#stable\.tag/#stable\.tryCatch/' R/inlabru_rspde.R | ||
Rscript -e "devtools::document()" | ||
Rscript -e "devtools::document()" | ||
git rm -rf pkgdown/ | ||
git add man | ||
git add .Rbuildignore | ||
git add vignettes | ||
git add DESCRIPTION | ||
git add R/inla_rspde.R | ||
git add R/inlabru_rspde.R | ||
git rm tests/testthat/test.inla_rspde.R | ||
git rm vignettes/*.Rmd | ||
git commit -m "Doing the setup" | ||
git push | ||
shell: bash | ||
shell: bash |