adding fractional intrinsic inla model #533
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
on: | |
push: | |
branches: | |
- devel-src | |
name: pkgdown | |
jobs: | |
pkgdown: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: "release" | |
extra-repositories: "https://inla.r-inla-download.org/R/testing https://mugglejinx.github.io/drat/ https://inlabru-org.r-universe.dev/" | |
- name: Install system dependencies on Linux (GL) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update -y && sudo apt-get install -y libglu1-mesa-dev libeigen3-dev | |
sudo ln -s /usr/bin/gcc /usr/local/bin/gcc | |
sudo ln -s /usr/bin/g++ /usr/local/bin/g++ | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
dependencies: '"all"' | |
extra-packages: | | |
pkgdown | |
- name: Session info | |
run: | | |
options(width = 100) | |
pkgs <- installed.packages()[, "Package"] | |
sessioninfo::session_info(pkgs, include_base = TRUE) | |
shell: Rscript {0} | |
- name: Install package | |
run: R CMD INSTALL . | |
- name: Deploy package | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions" | |
Rscript -e 'library(rmarkdown); rmarkdown::render("index.Rmd", "md_document")' | |
cp index_files/figure-markdown_mmd/* man/figures/ | |
sed -i 's/index_files/man/' index.md | |
sed -i 's/figure-markdown_mmd/figures/' index.md | |
git add * | |
git commit -m "adding index.md and figures" | |
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' |