View source: R/load_packages_with_install.R
load_packages_with_install | R Documentation |
Load a vector of packages. First check if each one is installed, and install it if not. This function works for CRAN, BioConductor, and github packages. It can only operate on one type of package at a time. So if you are loading packages from all three locations, you will need to call this function three times.
load_packages_with_install(packageNameList, location = "CRAN")
packageNameList |
A character vector of package names. For github, the format should be "author/package". |
location |
A character string specifying the location of the packages. Options are "CRAN", "BioConductor", and "github". Partial matches are allowed |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.