getConfig: Return a System Configuration Setting

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Retrieve one configuration setting

Usage

1
getConfig(var, path = ".")

Arguments

var

An character object specifying a value for which configuration is queried.

path

An optional character object specifying a path. Default is the current directory.

Details

This functions returns the configuration setting for a given input. in a data.frame object. The system-level functions sysconf, pathconf and confstr provide the underlying information.

Value

A result value corresponding to the requested setting. The return type can be either integer for a numeric value, character for text or NULL in case to value could be retrieved.

Author(s)

Dirk Eddelbuettel

See Also

getAll

Examples

1
2
3
getConfig("_NPROCESSORS_CONF")   # number of processor
getConfig("LEVEL1_ICACHE_SIZE")  # leve1 cache size
getConfig("GNU_LIBC_VERSION")    # libc version


Search within the RcppGetconf package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.