Skip to content
Prev 333536 / 398513 Next

use of bquote

On 22 Nov 2013, at 07:53 , Rolf Turner <r.turner at auckland.ac.nz> wrote:

            
I dunno either, but a hint at the reason would be to look at what happens with

xyplot(0 ~ 1, sub=list(quote(1+1)))

When you do computing on the language, sometimes quote()?ing is not sufficient protection against evaluation. That?s what expression objects are for. 

A solution seems to be

xyplot(0 ~ 1, sub=as.expression(
	bquote(pi==.(pi) ~ e==.(exp(1)))
))