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]]
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 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org 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.
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html<http://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; an example would help to show the way. On Mon, May 18, 2009 at 6:10 AM, Marie Sivertsen <mariesivert@gmail.com>wrote:> 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]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? [[alternative HTML version deleted]]
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, Marie Sivertsen <mariesivert at gmail.com> wrote:> 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]] > > ______________________________________________ > R-help at r-project.org 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. >