Re: [R] texi2dvi: option "clean" also deletes the generated pdf file

2010-08-19 Thread Marius Hofert
Dear all, many thanks for your help. I totally missed that texi2dvi is also a system command (I don't use that explicitly to compile my .tex docs). So I checked my "system-texi2dvi". It's quite interesting, if I use the option "--mostly-clean", everthing is removed. However, if I use just "--cl

Re: [R] texi2dvi: option "clean" also deletes the generated pdf file

2010-08-19 Thread Tim Gruene
Dear Marius, I see. I suppose it's a matter of your version of texi2dvi then - when I do the same in a freshly created directory (including the "test" directory), cutting and pasting your very code into R leaves me only with "myLaTeXFile2.pdf" and "test/myLaTeXFile2.tex" This is texi2dvi --versio

Re: [R] texi2dvi: option "clean" also deletes the generated pdf file

2010-08-19 Thread Duncan Murdoch
On 19/08/2010 7:55 AM, Marius Hofert wrote: Dear Tim, if I run ... ## Example 2: texi2dvi also deletes the generated .pdf require(tools) filepath <- paste(getwd(),"/test/myLaTeXFile2.tex",sep="") sink(file=filepath) cat("\\documentclass{article}\n") cat("\\usepackage[T1]{fon

Re: [R] texi2dvi: option "clean" also deletes the generated pdf file

2010-08-19 Thread Marius Hofert
Dear Tim, if I run ... ## Example 2: texi2dvi also deletes the generated .pdf require(tools) filepath <- paste(getwd(),"/test/myLaTeXFile2.tex",sep="") sink(file=filepath) cat("\\documentclass{article}\n") cat("\\usepackage[T1]{fontenc}\n") cat("\\usepackage[english]

Re: [R] texi2dvi: option "clean" also deletes the generated pdf file

2010-08-19 Thread Tim Gruene
Dear Marius, yes, that's what I had meant. I am sorry I had not actually tested my suggestion nor your problem (bad practice). Now I have and actually in case 2 you describe I only end up with test/myLaTeXFile2.tex and myLaTeXFile2.pdf. If, however, I run texi2dvi at least once with option 'clea

Re: [R] texi2dvi: option "clean" also deletes the generated pdf file

2010-08-19 Thread Marius Hofert
Dear Tim, you mean require(tools) filepath <- paste(getwd(),"/test/myLaTeXFile2.tex",sep="") sink(file=filepath) cat("\\documentclass{article}\n") cat("\\usepackage[T1]{fontenc}\n") cat("\\usepackage[english]{babel}\n") cat("\\usepackage{blindtext}\n")

Re: [R] texi2dvi: option "clean" also deletes the generated pdf file

2010-08-19 Thread Tim Gruene
Dear Marius, from reading the texi2dvi man-page and R-help on texi2dvi I suggest to set 'clean=F' and use 'texi2dvi = getOption("texi2dvi --mostly-clean")' instead. Tim On Thu, Aug 19, 2010 at 10:36:30AM +0200, Marius Hofert wrote: > Dear expeRts, > > below are two examples of using texi2dvi. T

[R] texi2dvi: option "clean" also deletes the generated pdf file

2010-08-19 Thread Marius Hofert
Dear expeRts, below are two examples of using texi2dvi. The problem becomes clear from the second example: on cleaning, texi2dvi also deletes the generated .pdf file. Is there a solution? Cheers, Marius ## Example 1: texi2dvi cleans fine, without deleting the generated .pdf require(tools) sink