Re: [R] Read Windows-like .INI files into R data structure?

From: Vladimir Eremeev <>
Date: Wed, 13 Jun 2007 01:20:57 -0700 (PDT)

One more question, inspired by this one, just to increase my R skill level.

Earl F. Glynn wrote:
> I need to process some datasets where the configuration information was
> stored in .INI-like files, i.e., text files with sections like this:
> [Section1]
> var1=value1
> var2=value2
> [Section2]
> A=value3
> B=value4
"var1=value1", "A=value3" is almost pure R code. Is it possible to use this feature to solve the problem? That is, something like eval(as.expression("A=value3")) and assign (store) the result in "lst$Section2" environment.

"lst" is a newly created list, containing the contents of the file being processed.

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 13 Jun 2007 - 08:41:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 13 Jun 2007 - 17:31:57 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.