Closed rjjanse closed 1 year ago
Can you give us a link to your repository? Thanks.
Can you give us a link to your repository? Thanks.
Here you go: https://github.com/rjjanse/rt
Ok, so the issue isn't about code-fold vs not, it's that you added an executable code cell, which requires the knitr engine, which requires jsonlite. In that case, your actions also need to install rmarkdown and its dependencies (which will grab jsonlite).
Your action is using renv, but I don't see an renv lockfile in your repository, and so there's no way for github to know you need rmarkdown:
- name: Install R Dependencies
uses: r-lib/actions/setup-renv@v2
with:
cache-version: 1
We explain this here: https://github.com/quarto-dev/quarto-actions/blob/main/examples/example-03-dependencies.md#using-renv-to-manage-r-packages
I'm going to go ahead and close this since I'm pretty sure that's the problem. But feel free to reopen this if the issue persists after you configure gha to install the dependencies.
Publishing a Quarto website via GitHub using a publish.yml file in directory .github\flows returns the error
Error in loadNamespace(x) : there is no package called ‘jsonlite’
and then fails. The jsonlite package is seemingly needed for the html optioncode-fold: true
(error does not occur withoutcode-fold: true
).Rendering on my local device works fine, only publishing via GitHub and using the publish.yml file fails. A current work-around I am using is rendering locally and using
render: "false"
underwith
in theRender and Publish
section of the publish.yml file.publish.yml
_quarto.yml
Render and Publish section of GitHub actions when failing: