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
Pros: handles CRAN / GitHub / Bioconductor packages without special tweaks; installs packages only when necessary, otherwise just attaches them (functionally is library + install.packages + remotes::install_github wrapped into one)
Cons: does still require everyone to install librarian
Build install.packages and remotes::install_github calls into every .qmd that references a package
Pros: explicit about package source and uses familiar tools
Cons: installation of every package on every use of quarto render will make rendering the website take a long time as we add more data bytes/recipes
Some other solution?...
The text was updated successfully, but these errors were encountered:
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/recipesThe text was updated successfully, but these errors were encountered: