Description Usage Arguments Details Examples
This will automatically download a character vector of package names. If they are already installed, it will update them (optional).
1 2 |
... |
unquoted package names |
pkgs |
character vector of package names. |
update.all |
If TRUE (default), will update all named packages automatically when run. |
repos |
Mirror to use for obtaining package |
This will only try to retreive packages from CRAN. It is good to load this at
the beginning of a script If you want others to automatically download
packages or give a script for someone to run with dependencies You can set
update.all
to FALSE
if you don't want to try and update the
packages each time it is run.
1 | auto_load(ggplot2, "data.table")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.