Learn R Programming

reproducible (version 0.2.0)

newLibPaths: A shortcut to create a .libPaths() with only 2 folders

Description

This will remove all but the top level of .libPaths(), which should be the base packages installed with R, and adds a second directory, the libPath.

Usage

newLibPaths(libPath)

Arguments

libPath

A path that will be the new .libPaths()[1]

Value

Invisibly the new .libPaths()

Examples

Run this code
# NOT RUN {
newLibPaths("testPackages")
.libPaths() # new .libPaths
# }

Run the code above in your browser using DataLab