Skip to content

getting package version inside .First.lib

1 message · Adrian Baddeley

#
> version number of the package that is being loaded?

Berwin Turlach kindly informs me that installed.packages() will extract 
details of all installed packages.

So if only one version of package "spatstat" has been installed,
we can determine the version number by
      installed.packages()["spatstat", "Version"]

But: if several versions of the same package are installed,
the question remains how to determine which version is being loaded...

A