Re: [R] Read code from character string

From: Johannes Huesing <>
Date: Fri, 18 Jun 2010 22:57:04 +0200

Greg Snow <> [Fri, Jun 18, 2010 at 04:57:03PM CEST]:
> You should also look at fortune(106) and think about possible other solutions to your overall objective.

I am not installing fortune solely for this purpose but I understand that anything which smells like macro expansion is frowned upon in R circles.

Yet there are situations where i want to treat code as data and data as code. As far as I gather this works only with closures in R, not with general S-expressions, so sometimes I have to resort to character strings.

Johannes Hüsing               There is something fascinating about science. 
                              One gets such wholesale returns of conjecture  from such a trifling investment of fact.                (Mark Twain, "Life on the Mississippi")

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 18 Jun 2010 - 20:59:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 18 Jun 2010 - 23:10:34 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive