parseDebian.System {R.utils} | R Documentation |
Parses a text, file or a connection for Debian formatted parameters.
A file in Debian format contains rows with parameters of the form
KEY=VALUE
. It is allowed to have duplicated keys.
System$parseDebian(text=NULL, file=NULL, keys=NULL, ...)
text |
The text to be parsed. Default value is NULL . |
file |
Name file, a File object or connection to be parsed.
Default value is NULL . |
keys |
The keys (names of the parameters) to be retrieved.
If NULL all fields are returned. Default value is NULL . |
Either, text
or file
must be given.
Returns a named list
of parameter values.
Henrik Bengtsson (http://www.braju.com/R/)
For more information see System
.
file <- file.path(Package("R.utils")$path, "DESCRIPTION") l <- System$parseDebian(file=file) print(l)