grab: The Grab Function

Description Usage Arguments Details Author(s) See Also

View source: R/grab.R

Description

This function is designed to be used in place of library and install.packages. It will check if a potential package is downloaded and, if not, it will try to download it using install.packages.

Usage

1
grab(..., list = character(), dependencies = TRUE)

Arguments

...

Packages that should be loaded

list

A character list of packages that should be loaded

dependencies

Passed to install.packages. Default is TRUE

Details

The function uses the logical output from require to determine if the package exists locally. If it does, the package is then loaded using library. If not, the function tries do download the package using install.packages, checks to make sure it downloaded, then loads the package.

Author(s)

Michael Floren

See Also

install.packages, require, library


flor3652/myStuff documentation built on Sept. 14, 2020, 1:16 a.m.