load_or_install_local: Load or install R packages (Local).

Description Usage Arguments Details Value Examples

Description

Given a list of paths to locally stored packages, i.e. R package folders (e.g. list("~/Desktop/ehR")) load all functions/data sets into the global namespace.

Usage

1
load_or_install_local(package_list, custom_lib_path = "", quiet = FALSE)

Arguments

package_list

List of package paths which are to be installed/loaded (e.g. list("~/Desktop/ehR")) - character).

custom_lib_path

Custom library path (character) [Default: Default library path].

quiet

Verbosity (logical - TRUE/FALSE) [Default: TRUE].

Details

Maintained by: Clara Marquardt

Value

List of packages which were successfully installed/loaded.

Examples

1
2
3
4
5
## Not run: 
package <- list("[package path]", "[package path]") ## do NOT end in a /
load_or_install_local(package_list=package, custom_lib_path=paste0(getwd(), "/test/"), quiet=FALSE)

## End(Not run)

ClaraMarquardt/ehR documentation built on May 6, 2019, 12:02 p.m.