Skip to content

Get information from a binary package

Source code

Description

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

Usage

getPackageInfo(file, OSflavour = character())

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

Value

A named vector with several components

Note

This is an internal function, use ::: to access it from outside the internal package code.

Author(s)

Dirk Eddelbuettel