Learn R Programming

drat (version 0.2.5)

getPackageInfo: Get information from a binary package

Description

This function returns the compile-time information added to the DESCRIPTION file in the package.

Usage

getPackageInfo(file, OSflavour = character())

Value

A named vector with several components

Arguments

file

the fully qualified path of the package

OSflavour

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).

Author

Dirk Eddelbuettel