Learn R Programming

mergen (version 0.2.1)

check_install: Check and Install R Package

Description

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.

Usage

check_install(package_name)

Value

TRUE if the package is already installed or can be installed. FALSE otherwise

Arguments

package_name

A character string specifying the name of the package to be checked and installed.

Examples

Run this code
# \donttest{
# Check and install "dplyr" package
check_install("dplyr")
# }

Run the code above in your browser using DataLab