Install and load an R package
add_packages(pkg = NULL, repo = NULL, pub = FALSE)
character
Name of a package to be installed/loaded
character
Name of the repository from which the package should be installed.
logical
variable indicating whether the app be published (see details)
A printed shiny app
If repo = NULL
the package will be installed from the CRAN. Otherwise, repo
is a character string that referring to the GitHub account in which the package is located.
When publishing apps on shinyapps.io or shinyServer, attempting to install.packages
will result in an error. Calls to install.packages
should not be included within an app.