From ggrothendieck at gmail.com  Tue May  2 08:26:08 2006
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Tue, 2 May 2006 02:26:08 -0400
Subject: [Rd] expression objects
In-Reply-To: <FD681FBF-70BC-4D28-99A9-4260850E1D56@mac.com>
References: <FD681FBF-70BC-4D28-99A9-4260850E1D56@mac.com>
Message-ID: <971536df0605012326h53dd163ib3d923c3eee37c29@mail.gmail.com>

Try this:

   e <- as.expression("A")
   identical(parse(text = as.character(e)), e) # FALSE


On 5/2/06, Parlamis Franklin <fparlamis at mac.com> wrote:
> if 'e' is a vector of mode 'expression', will the following always
> return TRUE:
>
> identical(e, parse(text = as.character(e)))  ?
>
>  > (e <- expression(x, y, z, 200*f%/%d, sin(e)))
> expression(x, y, z, 200 * f%/%d, sin(e))
>  > identical(e, parse(text = as.character(e)))
> [1] TRUE
>
> i have been relying on this fact in some of my code, and would be
> appreciative of any counterexamples.
>
> franklin parlamis
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] expression objects
Gabor Grothendieck