This function returns the compile-time information added
to the DESCRIPTION
file in the package.
getPackageInfo(file, OSflavour = character())
A named vector with several components
the fully qualified path of the package
an optional string naming the OSflavour, which is otherwise read as
the second element of the 'Built' field of the file
. For packages that do not
need compilation on macOS for R >= 4.3 the 'Built' field is empty in the DESCRIPTION
in a binary file (tgz), in which case it can be useful to set the OSflavour
e.g. by the value of R.Version()$platform, so that insertPackages
inserts
the binary into the appropriate sub folder (under bin/maxosx).
Dirk Eddelbuettel