Re: [R] executing strings

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sun 15 Oct 2006 - 14:40:56 GMT

Try this:

eval(parse(text = "pi + 3"))

On 10/14/06, Lloyd Lubet <lloydl@cybermesa.com> wrote:
> I'd like to excute character strings such as z<-"plot( objects()[1]"; eval(z) and viola I'd have a plot of my first dataframe in the first frame. Unfortunately this approach no longer works.
>
> Help?
>
> Lloyd L
>
> lloydl@cybermesa.com
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>



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. Received on Mon Oct 16 02:45:18 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 15 Oct 2006 - 17:30:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.