While most installations take
place in the default library, users are able to specify custom library
paths for each installed package. Thus the task of collecting metadata
for all locally available packages is slightly less trivial, especially
if the user wishes to take into consideration only a subset of locally
existing libraries. In any case, the key function to remember is
.libPaths()
as it provides the user with paths of the
currently attached libraries.
To list all packages installed to a selected library (or libraries)
the user should use wood_local_packages()
.
To list all versions of a package installed to selected libraries the
user should use wood_local_versions()
. Note that the
“versions” are plural, as it is possible to install more than one
version of a package, each to a different library.