inst
From devtools v1.13.2
by Hadley Wickham
Get the installation path of a package
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
# NOT RUN {
inst("devtools")
inst("grid")
# }
# NOT RUN {
# Can be passed to other devtools functions
unload(inst("ggplot2"))
# }
Community examples
Looks like there are no examples yet.