Re: [R] Read code from character string

2010-06-20 Thread Johannes Huesing
Gabor Grothendieck ggrothendi...@gmail.com [Sat, Jun 19, 2010 at 11:19:35AM CEST]: On Sat, Jun 19, 2010 at 4:56 AM, Johannes Huesing johan...@huesing.name wrote: A rule would be a data structure containing the ID of the rule, the rule in human readable language, an expression evaluating

Re: [R] Read code from character string

2010-06-19 Thread Johannes Huesing
Greg Snow greg.s...@imail.org [Sat, Jun 19, 2010 at 12:44:48AM CEST]: There are a lot of other reasons to install the fortunes package that just the one fortune, there is much wisdom, some wit, (and then there are mine) throughout the package. Sorry, but I am subscribing to r-help already.

Re: [R] Read code from character string

2010-06-19 Thread Gabor Grothendieck
On Sat, Jun 19, 2010 at 4:56 AM, Johannes Huesing johan...@huesing.name wrote: A rule would be a data structure containing the ID of the rule, the rule in human readable language, an expression evaluating variables within the environment of the appropriate data frame (and resolving to a

Re: [R] Read code from character string

2010-06-18 Thread Johannes Huesing
Peter Langfelder peter.langfel...@gmail.com [Thu, Jun 17, 2010 at 09:38:45PM CEST]: eval(parse(text=print(9**2))) cheers, I overlooked the text option. On Thu, Jun 17, 2010 at 12:32 PM, Johannes Huesing johan...@huesing.name wrote: Dear expRts, I have a character string, say a -

Re: [R] Read code from character string

2010-06-18 Thread Greg Snow
-help-boun...@r- project.org] On Behalf Of Johannes Huesing Sent: Friday, June 18, 2010 12:17 AM To: Peter Langfelder Cc: r-h...@stat.math.ethz.ch Subject: Re: [R] Read code from character string Peter Langfelder peter.langfel...@gmail.com [Thu, Jun 17, 2010 at 09:38:45PM CEST]: eval(parse

Re: [R] Read code from character string

2010-06-18 Thread Johannes Huesing
Greg Snow greg.s...@imail.org [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

Re: [R] Read code from character string

2010-06-18 Thread Greg Snow
. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: Johannes Huesing [mailto:johan...@huesing.name] Sent: Friday, June 18, 2010 2:57 PM To: Greg Snow Cc: Peter Langfelder; r-h...@stat.math.ethz.ch Subject: Re: [R] Read code from

[R] Read code from character string

2010-06-17 Thread Johannes Huesing
Dear expRts, I have a character string, say a - print(9**2). How do I execute the contents of the string, parsed as R code? Do I have to open a connection and use cat(a), and parse it at the other end? Cheers Johannes -- Johannes Hüsing There is something fascinating about

Re: [R] Read code from character string

2010-06-17 Thread Peter Langfelder
eval(parse(text=print(9**2))) On Thu, Jun 17, 2010 at 12:32 PM, Johannes Huesing johan...@huesing.name wrote: Dear expRts, I have a character string, say a - print(9**2). How do I execute the contents of the string, parsed as R code? Do I have to open a connection and use cat(a), and parse it