LoadLibrary: A function to load packages

View source: R/LoadLibrary.R

LoadLibraryR Documentation

A function to load packages

Description

This function is a wrapper for require() to check if a package is available and then attempts to install the package if it is unavailable. By rights should be called LoadPackage.

Usage

LoadLibrary(package)

Arguments

package

Character string (unquoted) specifying name of package

Value

none

Author(s)

Richard T. Gray, Rgray@kirby.unsw.edu.au

References

https://stackoverflow.com/questions/5595512/what-is-the-difference-between-require-and-library

Examples

LoadLibrary(tidyverse)


leftygray/LeftysRpkg documentation built on Feb. 11, 2024, 5:13 p.m.