Hello! Those of you, who use Sweave a lot, will probably find my shell script usable. You can get it at: http://www.bfro.uni-lj.si/MR/ggorjan/programs/shell/Sweave.sh No warranty, however don't hesitate to contact me if you find an error or have a patch! -- Lep pozdrav / With regards, Gregor GORJANC --------------------------------------------------------------- University of Ljubljana Biotechnical Faculty URI: http://www.bfro.uni-lj.si Zootechnical Department mail: gregor.gorjanc <at> bfro.uni-lj.si Groblje 3 tel: +386 (0)1 72 17 861 SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia
Friedrich.Leisch@tuwien.ac.at
2005-Feb-22 13:58 UTC
[R] Re: Run Sweave and LaTeX directly from command line
>>>>> On Tue, 22 Feb 2005 14:29:00 +0100, >>>>> Gregor GORJANC (GG) wrote:> Hello! > Those of you, who use Sweave a lot, will probably find my shell script > usable. You can get it at: > http://www.bfro.uni-lj.si/MR/ggorjan/programs/shell/Sweave.sh > No warranty, however don't hesitate to contact me if you find an error or > have a patch! Very nice! Side note 1: R ships a version of texi2dvi, hence you might use that one in case rubber is not found. 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 :-) %.tex: %.Rnw Sweave $< %.pdf : %.tex texi2dvi --clean --pdf $< Best, Fritz Leisch -- ------------------------------------------------------------------- Friedrich Leisch Institut f?r Statistik Tel: (+43 1) 58801 10715 Technische Universit?t Wien Fax: (+43 1) 58801 10798 Wiedner Hauptstra?e 8-10/1071 A-1040 Wien, Austria http://www.ci.tuwien.ac.at/~leisch
Gabor Grothendieck
2005-Feb-22 17:15 UTC
[R] Run Sweave and LaTeX directly from command line
It might be possible to translate 90% of this into R leaving just a short shell portion in which case it would be easy to translate just that part into Windows batch making it available on that OS too. As someone already mentioned, using texi2dvi could be helpful too. Regards. Date: Tue, 22 Feb 2005 14:29:00 +0100 From: Gregor GORJANC <gregor.gorjanc at bfro.uni-lj.si> To: <Friedrich.Leisch at ci.tuwien.ac.at>, <r-help at stat.math.ethz.ch> Subject: [R] Run Sweave and LaTeX directly from command line Hello! Those of you, who use Sweave a lot, will probably find my shell script usable. You can get it at: http://www.bfro.uni-lj.si/MR/ggorjan/programs/shell/Sweave.sh No warranty, however don't hesitate to contact me if you find an error or have a patch! -- Lep pozdrav / With regards, Gregor GORJANC --------------------------------------------------------------- University of Ljubljana Biotechnical Faculty URI: http://www.bfro.uni-lj.si Zootechnical Department mail: gregor.gorjanc <at> bfro.uni-lj.si Groblje 3 tel: +386 (0)1 72 17 861 SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia
Gabor, I definitely agree about use of R, however I am not so "much in" R as I am in Bash. It took me less than two hours to write this script. At home I use R under windows and I solve problem of portability with Cygwin. I know that this is not optimal solution for everyone but ... Can you provide me some insights/thoughts how this script might be written in R? I am open for discussion and cooperation on this script. What do you think Friedrich? I must look at this texi2dvi. I didn't hav any experience with it jet. I will look at it. -- Lep pozdrav / With regards, Gregor GORJANC --------------------------------------------------------------- University of Ljubljana Biotechnical Faculty URI: http://www.bfro.uni-lj.si Zootechnical Department email: gregor.gorjanc <at> bfro.uni-lj.si Groblje 3 tel: +386 (0)1 72 17 861 SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia --------------------------------------------------------------- -----Original Message----- From: Gabor Grothendieck [mailto:ggrothendieck at myway.com] Sent: tor 2005-02-22 18:15 To: Gorjanc Gregor; Friedrich.Leisch at ci.tuwien.ac.at; r-help at stat.math.ethz.ch Subject: RE: [R] Run Sweave and LaTeX directly from command line It might be possible to translate 90% of this into R leaving just a short shell portion in which case it would be easy to translate just that part into Windows batch making it available on that OS too. As someone already mentioned, using texi2dvi could be helpful too. Regards. Date: Tue, 22 Feb 2005 14:29:00 +0100 From: Gregor GORJANC <gregor.gorjanc at bfro.uni-lj.si> To: <Friedrich.Leisch at ci.tuwien.ac.at>, <r-help at stat.math.ethz.ch> Subject: [R] Run Sweave and LaTeX directly from command line Hello! Those of you, who use Sweave a lot, will probably find my shell script usable. You can get it at: http://www.bfro.uni-lj.si/MR/ggorjan/programs/shell/Sweave.sh No warranty, however don't hesitate to contact me if you find an error or have a patch! -- Lep pozdrav / With regards, Gregor GORJANC --------------------------------------------------------------- University of Ljubljana Biotechnical Faculty URI: http://www.bfro.uni-lj.si Zootechnical Department mail: gregor.gorjanc <at> bfro.uni-lj.si Groblje 3 tel: +386 (0)1 72 17 861 SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia
Friedrich, This texi2dvi is also very nice. Dou you know of any pros and cons in comparison to rubber? Is tex2dvi also shipped with R for windows? I am not able to find a binnary in my windows installation, however I found help page. Did I missed anything? I have 2.0.1>>>>> On Tue, 22 Feb 2005 14:29:00 +0100, >>>>> Gregor GORJANC (GG) wrote:> Hello! > Those of you, who use Sweave a lot, will probably find my shell script > usable. You can get it at: > http://www.bfro.uni-lj.si/MR/ggorjan/programs/shell/Sweave.sh > No warranty, however don't hesitate to contact me if you find an error or > have a patch! Very nice! Side note 1: R ships a version of texi2dvi, hence you might use that one in case rubber is not found. 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 :-) %.tex: %.Rnw Sweave $< %.pdf : %.tex texi2dvi --clean --pdf $< Best, Fritz Leisch -- ------------------------------------------------------------------- Friedrich Leisch Institut f?r Statistik Tel: (+43 1) 58801 10715 Technische Universit?t Wien Fax: (+43 1) 58801 10798 Wiedner Hauptstra?e 8-10/1071 A-1040 Wien, Austria http://www.ci.tuwien.ac.at/~leisch
Gabor Grothendieck
2005-Feb-22 22:30 UTC
[R] Run Sweave and LaTeX directly from command line
There are two main TeX distributions for Windows, MiKTeX and fptex. texi2dvi.exe ships with MiKTeX but not fptex. I think fptex has a texi2dvi UNIX shell script that in principle could be used with the Cygwin shell on Windows though I have never tried it. Because of that MiKTeX is really the only one of the two distributions that fully supports R although many people who use R on Windows apparently use fptex and it does not give problems apparently provided you don't get into currently lesser used features such as vignettes (althoutgh that may change). Date: Tue, 22 Feb 2005 23:03:03 +0100 From: Gorjanc Gregor <Gregor.Gorjanc at bfro.uni-lj.si> To: <r-help at stat.math.ethz.ch> Cc: <Friedrich.Leisch at tuwien.ac.at> Subject: RE: [R] Run Sweave and LaTeX directly from command line Friedrich, This texi2dvi is also very nice. Dou you know of any pros and cons in comparison to rubber? Is tex2dvi also shipped with R for windows? I am not able to find a binnary in my windows installation, however I found help page. Did I missed anything? I have 2.0.1>>>>> On Tue, 22 Feb 2005 14:29:00 +0100, >>>>> Gregor GORJANC (GG) wrote:> Hello! > Those of you, who use Sweave a lot, will probably find my shell script > usable. You can get it at:> http://www.bfro.uni-lj.si/MR/ggorjan/programs/shell/Sweave.sh> No warranty, however don't hesitate to contact me if you find an error or > have a patch!Very nice! Side note 1: R ships a version of texi2dvi, hence you might use that one in case rubber is not found. 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 :-) %.tex: %.Rnw Sweave $< %.pdf : %.tex texi2dvi --clean --pdf $< Best, Fritz Leisch -- ------------------------------------------------------------------- Friedrich Leisch Institut für Statistik Tel: (+43 1) 58801 10715 Technische Universität Wien Fax: (+43 1) 58801 10798 Wiedner Hauptstraße 8-10/1071 A-1040 Wien, Austria http://www.ci.tuwien.ac.at/~leisch
Gabor Grothendieck
2005-Feb-23 05:16 UTC
[R] Run Sweave and LaTeX directly from command line
This does not really answer your question and frankly I have not really spent the time to figure out what your script does but assuming ...\R\rw????\bin is in your PATH then the following one line batch file will run Sweave from the command line in the Windows console (assuming its placed in a batch file called Sweave.bat): rem Usage: Sweave filename echo Sweave("%1") | R --no-save --no-restore After running this the user would run texi2dvi --pdf myfile.tex Date: Tue, 22 Feb 2005 20:46:01 +0100 From: Gorjanc Gregor <Gregor.Gorjanc at bfro.uni-lj.si> To: <ggrothendieck at myway.com>, <r-help at stat.math.ethz.ch>, <Friedrich.Leisch at ci.tuwien.ac.at> Subject: RE: [R] Run Sweave and LaTeX directly from command line Gabor, I definitely agree about use of R, however I am not so "much in" R as I am in Bash. It took me less than two hours to write this script. At home I use R under windows and I solve problem of portability with Cygwin. I know that this is not optimal solution for everyone but ... Can you provide me some insights/thoughts how this script might be written in R? I am open for discussion and cooperation on this script. What do you think Friedrich? I must look at this texi2dvi. I didn't hav any experience with it jet. I will look at it. -- Lep pozdrav / With regards, Gregor GORJANC