Skip to content

Commit

Permalink
rewrite workflow w/ sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
bendominguez0111 committed Jul 28, 2023
1 parent 8137233 commit 83a9ece
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
pip install nbconvert
sudo apt-get install -y pandoc
sudo apt-get install -y r-base
Rscript -e "install.packages('rmarkdown')"
sudo Rscript -e "install.packages('remotes', repos = 'http://cran.rstudio.com/')"
sudo Rscript -e "install.packages('withr', repos = 'http://cran.rstudio.com/')"
sudo Rscript -e "withr::with_libpaths(new = '/usr/local/lib/R/site-library', remotes::install_github('rstudio/rmarkdown'))"
- name: Convert Notebooks and Rmds
run: |
Expand All @@ -32,5 +34,5 @@ jobs:
jupyter nbconvert --to html $notebook --output-dir dist
done
for rmd in submissions/**/*.Rmd; do
Rscript -e "rmarkdown::render('$rmd', output_dir = 'dist')"
sudo Rscript -e "withr::with_libpaths(new = '/usr/local/lib/R/site-library', rmarkdown::render('$rmd', output_dir = 'dist'))"
done

0 comments on commit 83a9ece

Please sign in to comment.