Description Usage Arguments Details Value Author(s) Examples
Load/unload one or more packages. When loading one or more packages,
if not already installed, try install it/them from various repos. If 
url is assigned, the package will also be downloaded and installed from 
that alternative url.
1 2 3 4 5  | 
... | 
 Strings or expressions representing packages to load/install or 
unload. In the function   | 
repo | 
 Currently only accepts 'cran'/'c', 'github'/'gh'/'g', 'gitlab'/'gl'/'l', 'bioconductor'/'bioc'/'b', 'bitbucket'/'k', and 'omegahat'/'oh'/'o'. Refer to Details.  | 
url | 
 If any of   | 
quiet | 
 Logical, default TRUE for   | 
force | 
 Logical. Should a package be detached even though other attached packages depend on it?  | 
There are several groups of repos that you can apply:
c or cran, you can also use install.packages()
g or gh or github, you can also use remotes::
install_github
b or bioc or bioconductor, you can also use remotes::
install_bioc
k or bitbucket, you can also use remotes::
install_bitbucket
l or gl or gitlab, you can also use remotes::
install_gitlab
o or oh or omegahat, you can also use install.packages
with repos='http://www.omegahat.org/R', type="source"
When you don't want to use the repo, you can directly assign url to 
download and install the pacakge(s).
invisible. If you set quiet = FALSE, the verbose
information will be printed out.
Yiying Wang, wangy@aetna.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  | ## Not run: 
## Load existing package(s)
loadPkgs(car)
loadPkgs(car, cluster)  # identical with
loadPkgs("car", "cluster")  # or
loadPkgs(c("car", "cluster"))
## Unload them simultaneously
unloadPkgs(car, cluster)
## Install a new package explcitly from CRAN and then load it
loadPkgs("tidyr", repo="c")
## Install a new package from other sources and load it
loadPkgs(hadley/svglite, hadley/purrr, repo="github")
loadPkgs(a4Base, repo="bioc")
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.