Skip to content
Prev 248370 / 398502 Next

Sweave: \Sexpr{} inside <<>>?

Hi,
Is it possible in Sweave to put \Sexpr{} inside <<>>?  This is a bad
example, but here goes:

<<results=hide>>
Age <- 5
@

<<>>
x <- \Sexpr{Age}
@

I'm trying to get it to display x <- 5, rather than x <- Age.  It's probably
so obvious I'm going to feel sorry for having to ask, just the same, I'm
stumped.  Any ideas?  Thanks.