powered by
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.
inst(name)
the name of a package.
It searches for the package in .libPaths(). If multiple dirs are found, it will return the first one.
.libPaths()
# NOT RUN { inst("devtools") inst("grid") # } # NOT RUN { # Can be passed to other devtools functions unload(inst("ggplot2")) # }
Run the code above in your browser using DataLab