View source: R/extractInstallPkg.R
check_install | R Documentation |
This function checks if an R package is installed, and if not, attempts to install it using either the standard CRAN repository or the Bioconductor repository.
check_install(package_name)
package_name |
A character string specifying the name of the package to be checked and installed. |
TRUE if the package is already installed or can be installed. FALSE otherwise
# Check and install "dplyr" package
check_install("dplyr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.