Suppose I have an object x in my current session:
x
x <- 1
How can I use this object in an Sweave or knitr document, without
I think it just works. If your Sweave file is named "temp.Rnw", just run
> x <- 5 > Sweave("temp.Rnw")
You'll have to worry about naming the resulting output properly so each report doesn't get overwritten.