inst: Get the installation path of a package

View source: R/inst.R

instR Documentation

Get the installation path of a package

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

inst(name)

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

inst("pkgload")
inst("grid")

r-lib/pkgload documentation built on Feb. 3, 2024, 9:48 p.m.