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

Set lib path for quarto render #2864

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Set lib path for quarto render #2864

wants to merge 1 commit into from

Conversation

jayhesselberth
Copy link
Collaborator

Closes #2830

Copy link

github-actions bot commented Mar 1, 2025

Comment on lines +112 to +123
# set the lib path to the temporary pkgdown installation directory
lib_path <- .libPaths()[1]
withr::with_libpaths(lib_path, code = {
quarto::quarto_render(
path,
metadata_file = metadata_path,
execute_dir = output_dir,
quarto_args = c("--output-dir", output_dir),
quiet = quiet,
as_job = FALSE
)
})
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the relevant changes, air reformatted the remainder.

@jayhesselberth
Copy link
Collaborator Author

Do we need to do any more handling of the case where pkgdown isn't installed in a temporary library? I.e. if build_site(install=FALSE) is called.

@jayhesselberth
Copy link
Collaborator Author

This still fails on github actions because the typical pkgdown workflow calls:

pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)

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

Successfully merging this pull request may close these issues.

Quarto vignettes use the installed version of the package, but Rmd vignettes use the current dev version
1 participant