# 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'))
Run the code above in your browser using DataLab