[Rd] Sweave.sh shell script on CRAN

Gabor Grothendieck ggrothendieck at gmail.com
Mon Apr 16 15:16:18 CEST 2007


On Windows sweave.bat is a Windows XP batchfile that will run sweave
and then latex and then display the file on screen.   Issuing the command
sweave without args from the Windows command line gives info on how to use it.

The batchfiles home page is:

   http://code.google.com/p/batchfiles/

The public svn for batchfiles is there and there is also a link
there to CRAN where the distribution itself is located.

There is some info in the README file and also if you issue the command

   sweave

without args it gives instructions on use.

To install sweave.bat you must place sweave.bat (and Rcmd.bat) both
from this batchfiles distribution anywhere in your path.  It does not require
sh.exe and does not make use of perl but does use  "Rcmd sweave"
so would have no prerequisites beyond latex, Acrobot (or other viewer)
and those of Rcmd.




On 4/16/07, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
> On 4/16/2007 7:01 AM, Gregor Gorjanc wrote:
> > Dear developeRs,
> >
> > Martin Maechler has suggested that I resend this email to R-devel
> > instead to R-packages for further comments and potential availability
> > for Windows.
> >
> > ----------------------------------------------------------------------
> >
> > I have uploaded my Sweave (bash) shell script on CRAN. It is available at
> >
> > http://cran.r-project.org/contrib/extra/scripts/
> >
> > In short this script runs Sweave on given Rnw file(s) and post process
> > produced tex file(s) with LaTeX and friends directly from command line.
> > It has quite a rich set of command line options to mainly ease the LaTeX
> > compilation.
> >
> > Please do not hesitate to contact me in case you find errors or have
> > suggestions and/or code contributions. I am particularly, interested in
> > making this script work under Windows.
> >
> > ----------------------------------------------------------------------
> >
> > I do not have any experience with use of (bash) shell scripts under
> > Windows. Sweave.sh can be used with Cygwin, but I am not sure how to use
> > shell script without Cygwin. I noticed that some "scripts" in R*/bin
> > directory on our Windows machine are perl (build, check, INSTALL, ...)
> > and shell (Rd2dvi.sh, Stangle.sh, Sweave.sh, ...) scripts. This
> > therefore means that R ships also perl and shell interpreter or am I
> > missing something?
>
> We don't ship Perl or sh.exe, but we do describe how to get them in the
> R Admin manual.
>
> I'd be interested in talking to you about integration of my patchDVI
> functions into your script.  They allow forward and reverse search
> between the .dvi file and the .Rnw file (in yap and xdvi, at least).
>
> Duncan Murdoch
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



More information about the R-devel mailing list