[R] Parsing configuration files

2009-05-18 Thread Marie Sivertsen
Dear list, Is there any functionality in R that would allow me to parse config files? I have trie ??config and apropos('config') without succes, and also search the R package site. Mvh. Marie [[alternative HTML version deleted]] __

Re: [R] Parsing configuration files

2009-05-18 Thread Uwe Ligges
Marie Sivertsen wrote: Dear list, Is there any functionality in R that would allow me to parse config files? Which kind of config files? R has read.dcf, for example. Uwe Ligges I have trie ??config and apropos('config') without succes, and also search the R package site. Mvh. Marie

Re: [R] Parsing configuration files

2009-05-18 Thread jim holtman
PLEASE do read the posting guide http://www.R-project.org/posting-guide.htmlhttp://www.r-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. There are regular expressions that can be used. It is very dependent upon the format of a configuration file;

Re: [R] Parsing configuration files

2009-05-18 Thread Wacek Kusnierczyk
Uwe Ligges wrote: Marie Sivertsen wrote: Dear list, Is there any functionality in R that would allow me to parse config files? Which kind of config files? R has read.dcf, for example. indeed, there are quite a number of more or less unambiguously specified configuration file formats.

Re: [R] Parsing configuration files

2009-05-18 Thread Gabor Grothendieck
This isn't secure but if its just for yourself and friends you could provide them in R source form, e.g. # my config.ini file a = abc b = 12 x = d in which case reading them is just a matter of source(config.ini) or possibly source(config.ini, local = TRUE) On Mon, May 18, 2009 at 6:10 AM,