You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running build_site() with argument devel = TRUE, the vignettes are built under a new process instead of using the current process where the package has already been loaded with devtools::load_all() .
This failure is very likely to happen since a vignette would typically call library() early on to load the package itself.
I believe the issue comes from the fact that argument new_process is not passed down to build_article():
When running
build_site()
with argumentdevel = TRUE
, the vignettes are built under a new process instead of using the current process where the package has already been loaded withdevtools::load_all()
.This failure is very likely to happen since a vignette would typically call
library()
early on to load the package itself.I believe the issue comes from the fact that argument
new_process
is not passed down tobuild_article()
:Suggestion:
new_process
tobuild_articles()
here: https://github.com/r-lib/pkgdown/blob/main/R/build-articles.R#L196new_process
tobuild_article()
here: https://github.com/r-lib/pkgdown/blob/main/R/build-articles.R#L214new_process
here based on value of argumentdevel
: https://github.com/r-lib/pkgdown/blob/main/R/build.R#L452The text was updated successfully, but these errors were encountered: