From c62d3847d6c5a56b04090a4cab80123d7af7ef2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zxBIB=20Lech=C3=B3n=2CMiguel=20=28MED=20BDS=29=20EXTERNAL?= Date: Thu, 6 Feb 2025 19:27:13 +0100 Subject: [PATCH] Install package fully to get access to it's installed files. --- .github/workflows/pkgdown.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pkgdown.yml b/.github/workflows/pkgdown.yml index 9984e86..bf8d3ef 100644 --- a/.github/workflows/pkgdown.yml +++ b/.github/workflows/pkgdown.yml @@ -99,9 +99,8 @@ jobs: # Render site render_site <- function(){ if(file.exists('vignettes/qc.Rmd')){ - #pkgdown::build_site(new_process = FALSE) # `new_process` because otherwise errors go unlogged pkgdown::init_site() - devtools::load_all() # try to mimic the local installation that pkgdown::build_site does but pkgdown::build_article does not + devtools::install() # mimic the local installation that pkgdown::build_site does but pkgdown::build_article does not pkgdown::build_article(name = 'qc') file.rename(from = 'vignettes/qc.Rmd', to = 'vignettes/_qc.Rmd') # This last step is not necessary now but, if we ever want to combine actions, @@ -109,7 +108,7 @@ jobs: # This block is written as a function to be able to lean on `on.exit`, btw. on.exit(file.rename(from = 'vignettes/_qc.Rmd', to = 'vignettes/qc.Rmd')) } - pkgdown::build_site(new_process = FALSE) # `new_process` because otherwise errors go unlogged + pkgdown::build_site(new_process = FALSE, install = FALSE) # `new_process` because otherwise errors go unlogged } render_site() shell: Rscript {0}