From ffdf8b4a0faa6f2d8802556addb5863137e2d4ef Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Wed, 12 Jun 2024 09:31:21 -0500 Subject: [PATCH] Add some logging --- R/utils-vignettes.R | 5 +++++ vignettes/.gitignore | 2 ++ 2 files changed, 7 insertions(+) diff --git a/R/utils-vignettes.R b/R/utils-vignettes.R index 9a433a7..bc40a88 100644 --- a/R/utils-vignettes.R +++ b/R/utils-vignettes.R @@ -33,6 +33,11 @@ vweave_quarto <- function(format) { } return(vweave_empty(file)) } + + cat("R_LIBS:", Sys.getenv("R_LIBS"), "\n", sep = "", file = "~/desktop/log.txt", append = TRUE) + cat(".libPaths(): ", paste0(.libPaths(), collapse = ":"), "\n", sep = "", file = "~/desktop/log.txt", append = TRUE) + cat("Packages:", paste0(dir(.libPaths()[1]), collapse = ","), "\n", sep = "", file = "~/desktop/log.txt", append = TRUE) + quarto_render(file, ..., output_format = format, metadata = meta) } } diff --git a/vignettes/.gitignore b/vignettes/.gitignore index ba7abf3..fbda3f7 100644 --- a/vignettes/.gitignore +++ b/vignettes/.gitignore @@ -1,3 +1,5 @@ *.html *.R *_files + +/.quarto/