parseDebian.System

0th

Percentile

Parses a string, file or connection for Debian formatted parameters

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.

Keywords
methods, internal
Usage
System$parseDebian(text=NULL, file=NULL, keys=NULL, ...)
Arguments
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.
Value

  • Returns a named list of parameter values.

synopsis

parseDebian.System(this, text=NULL, file=NULL, keys=NULL, ...)

See Also

For more information see System.

Aliases
  • parseDebian.System
  • System.parseDebian
  • parseDebian.System
  • parseDebian,System-method
Examples
file <- file.path(Package("R.utils")$path, "DESCRIPTION")
 l <- System$parseDebian(file=file)
 print(l)
Documentation reproduced from package R.utils, version 0.7.9, License: LGPL version 2.1 or newer (the releases)

Community examples

Looks like there are no examples yet.