[R] Re: Run Sweave and LaTeX directly from command line

Friedrich.Leisch@tuwien.ac.at Friedrich.Leisch at tuwien.ac.at
Wed Feb 23 09:30:54 CET 2005


>>>>> On Tue, 22 Feb 2005 20:21:46 -0600,
>>>>> Dirk Eddelbuettel (DE) wrote:

  > On 22 February 2005 at 14:58, Friedrich.Leisch at tuwien.ac.at wrote:
  > | side note 2: For make afficionados the follwing 2 rules in combination
  > | with the Sweave script from the FAQ do almost the same (that's what I
  > | use :-)

  > Sure, but it requires a (arguably small) Makefile in every sweave project
  > directory.

Not really, the way I do it is that I have a $HOME/etc/Makeconf with a
lot of personal rules like those for .Snw files, and in my .bashrc I
define

fmake ()
{
    make -f ~/etc/Makeconf $*
}

such that calling fmake instead of make gives me my private rules in
every place I need them :-)



  > Would you consider integrating Gregor's script (or a suitable
  > modification) instead?

Yes, sure, that's why I made him aware of texi2dvi: At least on Unix
systems we make sure that that is always available, while rubber might
not be. On the other hand, the R 2-liner I mentioned in an earlier
mail might be the better way to go. I always use the make rules I
described, hence had no need for either one of them -> none is in the
R sources (yet).

Best,
Fritz




More information about the R-help mailing list