Skip to content
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

issues with quarto files on Windows #2852

Open
d-morrison opened this issue Feb 4, 2025 · 5 comments
Open

issues with quarto files on Windows #2852

d-morrison opened this issue Feb 4, 2025 · 5 comments
Labels

Comments

@d-morrison
Copy link

d-morrison commented Feb 4, 2025

I'm having trouble getting pkgdown::build_site() to run on Windows for packages with quarto content.

Here's a reprex, where I set up two GHA workflows:

The two pkgdown workflows are mostly vanilla copies of https://github.com/r-lib/actions/blob/v2-branch/examples/pkgdown.yaml;
I think the only changes are:

  • I renamed the workflows to specify ubuntu vs windows
  • I removed the deploy step from the windows version (to avoid collisions)
  • In the - uses: r-lib/actions/setup-r-dependencies@v2 step, I replaced extra-packages: any::pkgdown, local::. with extra-packages: r-lib/pkgdown, local::., any::quarto, to check whether the dev version of pkgdown might help and to make sure quarto-r got installed (not sure if quarto-r is even used in this workflow)

pkgdown::build_site() also fails on my local environment.

Thanks for any tips on how to solve!

@jayhesselberth
Copy link
Collaborator

This error is similar to #2844. Quarto is being installed by the action, but then the exectuable isn't found.

@d-morrison d-morrison changed the title issues with quarto files on windows issues with quarto files on Windows Feb 8, 2025
@jayhesselberth
Copy link
Collaborator

jayhesselberth commented Mar 1, 2025

Can you try re-running the action with: extra-packages: r-lib/pkgdown@quarto-libpath

@d-morrison
Copy link
Author

r-lib/pkgdown@quarto-libpath

@jayhesselberth I'm sorry to say it still fails on windows:

Image

I did manage to fix the R CMD check error, which turned out to be from putting _quarto.yml in vignettes/articles/ instead of vignettes/

@jayhesselberth
Copy link
Collaborator

Can you try one more time, but set the following in the workflow file (i.e., don't set install = FALSE):

        run: pkgdown::build_site_github_pages(new_process = FALSE)

d-morrison added a commit to d-morrison/test.package that referenced this issue Mar 1, 2025
@d-morrison
Copy link
Author

Can you try one more time, but set the following in the workflow file (i.e., don't set install = FALSE):

        run: pkgdown::build_site_github_pages(new_process = FALSE)

@jayhesselberth didn't seem to work: https://github.com/d-morrison/test.package/actions/runs/13599340836/job/38022696625

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants