System$parseDebian | 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.
## Static method (use this):
## System$parseDebian(text=NULL, file=NULL, keys=NULL, ...)
## Don't use the below:
## S3 method for class 'System'
parseDebian(this, text=NULL, file=NULL, keys=NULL, ...)
text |
The text to be parsed. Default value is |
file |
Name file, a |
keys |
The keys (names of the parameters) to be retrieved.
If |
Either, text
or file
must be given.
Returns a named list
of parameter values.
Henrik Bengtsson
For more information see System
.
file <- file.path(Package("R.utils")$path, "DESCRIPTION")
l <- System$parseDebian(file=file)
print(l)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.