Description Usage Arguments Value Examples
List the installed versions of packages in a library directory
1 | installed.versions(pkgs, lib)
|
pkgs |
character vector of the names of packages for which to query the installed versions |
lib |
character vector of length one giving the library directory
containing the packages to query. If missing, defaults to the
first element of |
a named character vector of version numbers corresponding to
pkgs
, with names giving the package names. If a packakge could not be
found in lib
, an NA will be returned.
1 2 3 4 5 6 7 8 9 | # the versions of versions
installed.versions('versions')
# apply to multiple packages
installed.versions(c('stats', 'versions'))
# add a package that doesn't exist or isn't installed
# (returns NA for that one)
installed.versions(c('stats', 'versions', 'notapackage'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.