Suppose I have an object that was processed in an earlier knitr chunk, say
my_df <- read.dta('somefile.dta')
x <- mean(my_df$age)
Putting an inline knitr chunk does not work -- the knitr chunk is written out as text; it is not processed. And I don't think I can use \Sexpr{x} because I don't seem to be able to refer to x in \Sexpr{}.
I'm using LyX 2.0.3 and svn, and knitr version .3