-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when building quarto articles on GH actions #2733
Comments
@DanChaltiel could you please file the example rendering as a separate issue? For that it would be super useful if you could include a minimal qmd that illustrated the problem. Thanks! |
I'm not sure what you meant, but I tried to add minimal vignettes to see which would fail. I'd gladly give you more information but I'm a bit clueless on how to efficiently debug GHActions. I separated the formula bug in the vignette into another issue as requested. |
@DanChaltiel You could try adding Maybe try replacing this in https://github.com/DanChaltiel/EDCimport/blob/b7e63cced82bdaf00deb1fc8367c5c978faa8f5e/.github/workflows/pkgdown.yaml#L30-L35 - uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Thanks, I tried it, but the error remains: https://github.com/DanChaltiel/EDCimport/actions/runs/10111494027/job/27963549942#step:7:392 |
Ok, but I see that this is an article. (i.e. in the vignettes/articles folder as opposed to vignettes/) If you want it to be a vignette, place it in the vignettes/ folder directly. Use ---
title: "Adverse Events"
description: >
Learn how to make AE tables.
format: html
knitr:
opts_chunk:
collapse: true
comment: '#>'
--- Not sure if this will solve the issue, but it may help. I have been able to setup Quarto articles in gt. https://github.com/rstudio/gt/blob/master/.github/workflows/pkgdown.yaml |
I think the issue with Quarto articles is because they are being built by For example, if you clone my test package from github (https://github.com/ethanbass/quartoArticleError) and run However, Quarto articles build correctly if you modify
After installing my patched version with the above modification, quarto articles are built correctly.
Using my patched pkgdown, the quarto article also builds on github actions correctly (see https://github.com/ethanbass/quartoArticleError/actions/runs/11316616971/job/31469099510 and https://ethanbass.github.io/quartoArticleError/articles/quarto-article.html) Alternatively, I thought of modifying the Edit: To clarify, this is only an issue if the source of your article lives in the "articles" subdirectory, as is done automatically when using |
@ethanbass Thank you so much. I thought I was losing my mind. |
Hi,
I tried setting up quarto vignettes, and while it works perfectly on my computer (local), I could not manage to make it work on GH actions.
Locally, even
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
works fine.For instance, this is the last run I had:
https://github.com/DanChaltiel/EDCimport/actions/runs/10092641396/job/27907083693#step:7:393
Here is the workflow: https://github.com/DanChaltiel/EDCimport/actions/runs/10092641396/workflow
I hope I did it correctly, but at least I can say that the error message is not specific enough to let me debug this.
Note that my vignette uses tabsets.min.js to have tabs.
BTW, it would be nice to reference a minimal reproducible example in the vignette, so that we could simply grab the .qmd file, test that it runs on our setup, and then incrementally change our article it to make what we want.
The text was updated successfully, but these errors were encountered: