Skip to contents

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")
#> [1] "/tmp/Rtmp2uZSAm/temp_libpath34a85e1af59204/pkgload"
inst("grid")
#> [1] "/opt/R/4.5.1/lib/R/library/grid"