Description Usage Arguments Value Examples
View source: R/grab_and_attach.R
grab stands for - try to to load package, if it fails attempt to install, attach stands for - attaching the grabbed package to the search path of the R session.
1 2 3 4 5 6 | grab_and_attach(
...,
mirror = "https://cloud.r-project.org/",
dependencies = TRUE,
update_first = FALSE
)
|
... |
List of packages to install (accepts NSE or standard string values) |
mirror |
Will be passed down to 'repos' argument of 'install.packages' |
dependencies |
Will be passed down to 'dependencies' argument of 'install.packages' |
update_first |
Boolean, indicates if an update of the packages should be done first before the grabing procedure takes place. |
Does not have a return value, the successful outcome is that the indicated packages are loaded and attached.
1 | grab_and_attach('lubridate', data.table, 'cli')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.