This is an indirect approach that I know of. Then you can find your installed version of packageVersion()
A package called versions . The available.versions() function can help you. This will find you all available package versions.
packageVersion("ggplot2") #[1] '1.0.1' available.versions("ggplot2") #$ggplot2 # version date available #1 1.0.1 2015-03-17 TRUE #2 1.0.0 2014-05-21 FALSE #3 0.9.3.1 2013-03-02 FALSE ...
Update:
The devtools package has the functions package_deps () and dev_package_deps ().
package_deps("ggplot2") # Needs update ----------------------------- # package installed available # ggplot2 2.0.0 2.1.0 # scales NA 0.4.0 ?package_deps "Find all dependencies of a CRAN or dev package."
{This feature has not been tested for the development package since my end. However, I believe this should do your job.}
GAURAV
source share