load_packages_with_install: Load a vector of packages, installing them if they are not...

View source: R/load_packages_with_install.R

load_packages_with_installR Documentation

Load a vector of packages, installing them if they are not already installed

Description

Load a vector of packages. First check if each one is installed, and install it if not. This function works for CRAN, BioConductor, and github packages. It can only operate on one type of package at a time. So if you are loading packages from all three locations, you will need to call this function three times.

Usage

load_packages_with_install(packageNameList, location = "CRAN")

Arguments

packageNameList

A character vector of package names. For github, the format should be "author/package".

location

A character string specifying the location of the packages. Options are "CRAN", "BioConductor", and "github". Partial matches are allowed


mjdufort/miscHelpers documentation built on Jan. 18, 2025, 11:55 a.m.