Hi all,
I'm certainly missing something obvious, but I'm trying to render a Quarto book on github actions and it's not working because of some missing dependency (but somehow it worked yesterday? But not anymore!). Anyways, here's the workflow file: rap4all/quarto-publish.yml at master · b-rodrigues/rap4all · GitHub (copied straight from the documentation) and here's the error message I get:
Run quarto-dev/quarto-actions/publish@v2
Run git config --global user.email "quarto-github-actions-publish@example.com"
From https://github.com/b-rodrigues/rap4all
* branch gh-pages -> FETCH_HEAD
* [new branch] gh-pages -> origin/gh-pages
Rendering for publish:
[ 1/12] index.qmd
[ 2/12] intro.qmd
[ 3/12] fprog.qmd
Error in loadNamespace(x) : there is no package called ‘jsonlite’
Calls: .main ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
R installation:
Version: 4.2.2
Path: /usr/lib/R
LibPaths:
- /usr/local/lib/R/site-library
- /usr/lib/R/site-library
- /usr/lib/R/library
rmarkdown: (None)
The rmarkdown package is not available in this R installation.
Install with install.packages("rmarkdown")
Error: Process completed with exit code 1.
So somehow it seems that the "Setup Quarto" actions does not install everything needed? Also, in the Qmd file that throws the error, no packages at all get loaded in the code chunks. For now, I'm using simply base R capabilities.
Thanks in advance for the help
Cheers