inst: Get the installation path of a package

Description Usage Arguments Details Source Examples

View source: R/inst.R

Description

Given the name of a package, this returns a path to the installed copy of the package, which can be passed to other functions.

Usage

1

Arguments

name

the name of a package.

Details

It searches for the package in .libPaths(). If multiple dirs are found, it will return the first one.

Source

Deprecated function from the devtools package

Examples

1
2
3
4
5
6
7
inst("devtools")
inst("grid")
## Not run: 
# Can be passed to other devtools functions
unload(inst("ggplot2"))

## End(Not run)

teachingApps documentation built on July 1, 2020, 5:58 p.m.