julia.jacobson at arcor.de
2010-Aug-06 19:39 UTC
[R] Running Sweave directly from Windows command line
Hello everybody out there using R, When I try to run the command "R CMD Sweave file.Rnw" (R Version 2.11.1) on the command line of Windows 7, an error message tells me that the command "sh" is not known. I suppose that R is trying to use a shell script, which can't be interpreted using Windows. However, running Sweave from the R command prompt works fine. Anyway, under Linux the command "R CMD Sweave file.Rnw" works also perfectly. Is there any possibility to get it working in Windows? Thanks in advance! Wassertemperaturen in Deutschland Sommer, Sonne, Strand - wer braucht Abk?hlung? Die aktuellen Wassertemperaturen und Windgeschwindigkeiten f?r Deutschlands Badeseen gibt?s auf arcor.de.
Gabor Grothendieck
2010-Aug-06 21:54 UTC
[R] Running Sweave directly from Windows command line
On Fri, Aug 6, 2010 at 3:39 PM, <julia.jacobson at arcor.de> wrote:> Hello everybody out there using R, > When I try to run the command "R CMD Sweave file.Rnw" (R Version 2.11.1) on the command line of Windows 7, an error message tells me that the command "sh" is not known. > I suppose that R is trying to use a shell script, which can't be interpreted using Windows. However, running Sweave from the R command prompt works fine. > Anyway, under Linux the command "R CMD Sweave file.Rnw" works also perfectly. > Is there any possibility to get it working in Windows? > Thanks in advance! > > Wassertemperaturen in Deutschland > Sommer, Sonne, Strand - wer braucht Abk?hlung? Die aktuellen Wassertemperaturen und Windgeschwindigkeiten f?r Deutschlands Badeseen gibt?s auf arcor.de. >Google for Rtools, go to first hit, download and install it being sure the Rtools bin directory is on your path. Then try again. There is also Sweave.bat in http://batchfiles.googlecode.com . If you use Sweave.bat it will find Rtools in the registry so you don't need to add the Rtools bin directory to your path.