Earl:

.Ini files are, for lack of a better description, ancient.

There are old windows functions such as GetProfileString.
However you will have to make reference to load these from the windows
Kernel.dll.
Probably not worth the effort to code really old things as .ini files.

>From what I see of packages, better to change these files to XML format
see if the XML package on CRAN will solve your requirement.

The section names would be top nodes with
XML tags containing the data at the sub level. XML is really
The best way to go; get away from .ini files.

Look at the XML package, reading nodes, parsing DOM.

Neil 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Earl F. Glynn
Sent: Tuesday, June 12, 2007 12:48 PM
To: r-help@stat.math.ethz.ch
Subject: [R] Read Windows-like .INI files into R data structure?

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

...

>From Google and other searches I haven't found any package, or function
within a package, that reads .INI files into an R list, or other data
structure.



Any suggestions, or do I need to write my own?

efg

Earl F. Glynn
Stowers Institute for Medical Research

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--------------------------------------------------------

 
 
This information is being sent at the recipient's request or with their 
specific understanding. The recipient acknowledges that by sending this 
information via electronic means, there is no absolute assurance that the 
information will be free from third party access, use, or further 
dissemination. This e-mail contains information that is privileged and/or 
confidential and may be subject to legal restrictions and penalties regarding 
its unauthorized disclosure or other use. You are prohibited from copying, 
distributing or otherwise using this information if you are not the intended 
recipient. Past performance is not necessarily indicative of future results. 
This is not an offer of or the solicitation for any security which will be made 
only by private placement memorandum that may be obtained from the applicable 
hedge fund. If you have received this e-mail in error, please notify us 
immediately by return e-mail and delete this e-mail and all attachments from 
your system. Than!
 k You.

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to