check_install: Check and Install R Package

View source: R/extractInstallPkg.R

check_installR Documentation

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)

Arguments

package_name

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

Value

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

Examples


# Check and install "dplyr" package
check_install("dplyr")



mergen documentation built on June 27, 2024, 5:10 p.m.