Using Sweave in R - Tutorial Troubleshooting

AI Thread Summary
To use Sweave in R, create a .Rnw file instead of a .tex file, such as myfile.Rnw. The command to run is sweave('myfile.Rnw'). However, users have reported that the function may not be available in certain versions of R, specifically R 2.8.1 on Windows Vista. It's important to ensure that the correct version of R is being used and that the necessary packages are installed. For further guidance, a tutorial is available at the provided link.
MaxManus
Messages
268
Reaction score
1
Does anyone know how to use Sweave in R? I read a tutorial it said make a texfile with extention .Rnw instead of tex f.ex myfile.Rnw and use the command sweave('myfile.Rnw') in R. But by R has no such function even though the tutorial says it has.

Tutorial:

http://www.cepe.ethz.ch/education/NPecoHS2010/Sartori-Sweave.pdf"
 
Last edited by a moderator:
Physics news on Phys.org
I'm using Windows Vista and R 2.8.1
 
Back
Top