[R] Running Sweave directly from Windows command line

Gabor Grothendieck ggrothendieck at gmail.com
Fri Aug 6 23:54:20 CEST 2010


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.



More information about the R-help mailing list