Skip to content
Prev 77595 / 398502 Next

Doubt about Sweave

Hi,

At this moment, I make my R output using comments and latex tags in R.
Something like this:

### make a plot
plot(y~x)
dev.copy2eps(file="plot.eps")
# @\includegraphics[width=\linewidth]{plot}@
...

After I include the file saved with this code in a latex document using the 
listings package.

It work.

I reading about Sweave and it make a good output. But all example is made with 
R commands mades in a file. Is possible to make an output with sweave 
interactively in R and after the analysis end export the latex code to a 
file?

Thanks
Ronaldo