inst: Get the installation path of a package

Description Usage Arguments Details 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 devtools 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.

Examples

1
2
inst("pkgload")
inst("grid")

r-lib/pkgload documentation built on May 5, 2018, 4:27 p.m.