Re: [R] Read code from character string

2010-06-20 Thread Johannes Huesing
Gabor Grothendieck [Sat, Jun 19, 2010 at 11:19:35AM CEST]: > On Sat, Jun 19, 2010 at 4:56 AM, Johannes Huesing > 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 t

Re: [R] Read code from character string

2010-06-19 Thread Gabor Grothendieck
On Sat, Jun 19, 2010 at 4:56 AM, Johannes Huesing 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 logical vector), possibl

Re: [R] Read code from character string

2010-06-19 Thread Johannes Huesing
Greg Snow [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. I could not pos

Re: [R] Read code from character string

2010-06-18 Thread Greg Snow
eg) L. Snow Ph.D. 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.

Re: [R] Read code from character string

2010-06-18 Thread Johannes Huesing
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

Re: [R] Read code from character string

2010-06-18 Thread Greg Snow
ct.org [mailto:r-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 [Thu, Jun 17, 2010 at > 09:38:45PM CEST]

Re: [R] Read code from character string

2010-06-17 Thread Johannes Huesing
Peter Langfelder [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 > wrote: > > Dear expRts, > > I have a character string, say a <- "print(9**2)". How do I execute > > the con

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 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 at the other

[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 sci