The 'getconf' command-line tool provided by 'libc' allows querying of a large number of system variables. This package provides similar functionality.
Rcpp Read Access to System Configuration Settings
Modern POSIX systems have a binary getconf
which can access the system
calls sysconf
, pathconf
and confstr
. This package brings the
values back to R.
This package requires access to these system calls, and definitions of its data structures in the system header files. It works on Linux and OS X and should work on other POSIX-compliant OSs. Contributions would be very welcome.
The package is on CRAN and can be installed via a standard
R> install.packages("RcppGetconf")
command.
It contains two useful functions right now. It currently builds cleanly on Linux and OS X; reports from other builds would (and PRs where needed) would be greatly appreciated.
Dirk Eddelbuettel
GPL (>= 2)