View source: R/utils-package.R
package_installed | R Documentation |
Check if a package is installed
package_installed(pkgs, all = FALSE)
pkgs |
vector of package names |
all |
only returns TRUE if all packages are installed. Default is FALSE. |
logical, if packages are installed or not. If all=TRUE
, return
a logical value of whether all packages a re installed.
# Check if package base and dipsaus are installed
package_installed(c('base', 'dipsaus'))
# Check if all required packages are installed
package_installed(c('base', 'dipsaus'), all = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.