Re: [R] parse/eval and character encoded expressions: How to deal with non-encoding strings?

2013-01-28 Thread William Dunlap
William Dunlap > Sent: Monday, January 28, 2013 8:14 AM > To: Johannes Graumann; r-h...@stat.math.ethz.ch > Subject: Re: [R] parse/eval and character encoded expressions: How to deal > with non- > encoding strings? > > Instead of saving a string that can be parsed into a lan

Re: [R] parse/eval and character encoded expressions: How to deal with non-encoding strings?

2013-01-28 Thread William Dunlap
tr(,"class") [1] "Foo" > > i <- 17 > getFileFoo(fooObjs[[2]]) # Note that eval gets value of i as 2, not 17 [1] "File2.txt" Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.

[R] parse/eval and character encoded expressions: How to deal with non-encoding strings?

2013-01-27 Thread Johannes Graumann
Hi, I am intending to save a path-describing character object in a slot of a class I'm working on. In order to have the option to use "system.file" etc in such string-saved path definitions, I wrote this ExpressionEvaluator <- function(x){ x <- tryCatch( expr=base::parse(text=x), erro