read_ini() reads ini files of the form

[section]
key = value

into a list.

read_ini(
  file = stop("Argument 'file' is needed."),
  skip = NULL,
  encoding = "unknown"
)

Arguments

file

Connection or path to file.

skip

Number of lines to skip before first [section] starts.

encoding

See base::readLines().

Value

A list with one element per section in the .ini file, each containing a list with elements for the key-value pairs.

Details

read_ini() sanitizes the element names and tries to convert scalars and comma separated numeric vectors to numeric.

Author

C. Beleites