load_or_install: Load or install a package

Description Usage Arguments Value References

View source: R/utils.R

Description

load_or_install checks if a package is installed, loads it if it is, and installs it if not.

Usage

1
load_or_install(package_names, repos)

Arguments

package_names

A vector of package names

repos

URL for downloading the packages.

Value

No message if it successfully loads the specified packages; Error if such a package does not exist.

References

Credit: http://www.vikparuchuri.com/blog/loading-andor-installing-packages/


oslerinhealth/baker documentation built on May 22, 2021, 12:05 p.m.