Open njlyon0 opened 1 year ago
I have been going with the following lately which I rather like:
if (!require(librarian, quietly = T)){
install.packages('librarian')
}
librarian::shelf(
tidyverse,
here,
quiet = T
)
Run into this issue when rendering the website, and I did not have ggsvg
installed.
I updated the ggsvg.qmd with Cullen's suggestion. The only thing to remember is that if the package is being installed from GitHub you need to add the user name and package name.
The code looks like this
# load libraries
if (!require(librarian, quietly = T)){
install.packages('librarian')
}
librarian::shelf(
tidyverse,
here,
palmerpenguins,
coolbutuseless/ggsvg,
quiet = T
)
Problem
library
to invoke the R packages necessary for eachSolution(s)
librarian::shelf
to install/load packageslibrary
+install.packages
+remotes::install_github
wrapped into one)librarian
install.packages
andremotes::install_github
calls into every .qmd that references a packagequarto render
will make rendering the website take a long time as we add more data bytes/recipes