Description Usage Arguments Value
View source: R/grab_and_attach.R
function wrapping try catch that tries to load a package. If the loading process faills it will start installation procedure that fails gracefully,
1 | checkAndLoad(pckg, mirror, dependencies)
|
pckg |
Packages to install, can be character (e.g "data.table") or NSE label (data.table without paranthesis) |
mirror |
Will be passed down to 'repos' argument of 'install.packages' |
dependencies |
Will be passed down to 'dependencies' argument of 'install.packages' |
Nothing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.