Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Marc Schwartz
On Aug 30, 2013, at 2:20 PM, Henrik Bengtsson wrote: > On Fri, Aug 30, 2013 at 12:14 PM, Duncan Murdoch > wrote: >> On 30/08/2013 3:09 PM, Marc Schwartz wrote: >>> >>> On Aug 30, 2013, at 2:00 PM, cstrato wrote: >>> Dear all, To create a *.pdf file from a *.Rnw file I do: >>>

[Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread cstrato
Dear all, To create a *.pdf file from a *.Rnw file I do: olddir <- getwd(); setwd(outdir); tryCatch({Sweave("QAReport.Rnw"); tools::texi2pdf("QAReport.tex", clean=TRUE) }, finally = setwd(olddir) ); This works fine,

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Henrik Bengtsson
On Fri, Aug 30, 2013 at 12:21 PM, cstrato wrote: > Dear Duncan, dear Marc, > > Thank you for your fast reply. > > Can you please tell me: > If texi2pdf() won't delete files how are the files deleted when the > directory structure is Test/inst/doc/? Check if what you're observing is reproducible w

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread cstrato
Dear Henrik, Thank you for your explanation. Yes, this behavior is reproducible many times. When I copy both lines together into R, i.e. Sweave("QAReport.Rnw") tools::texi2pdf("QAReport.tex", clean = TRUE) then the auxiliary files are deleted. However, when I keep the *.tex file only an

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread cstrato
Dear Henrik, I am trying to attach the 'QAReport.Rnw' file which I am using on my Mac to reproduce your problem. Best regards, Christian On 8/30/13 9:50 PM, cstrato wrote: Dear Henrik, Thank you for your explanation. Yes, this behavior is reproducible many times. When I copy both lines t

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Henrik Bengtsson
On Fri, Aug 30, 2013 at 12:40 PM, Marc Schwartz wrote: > > On Aug 30, 2013, at 2:20 PM, Henrik Bengtsson wrote: > >> On Fri, Aug 30, 2013 at 12:14 PM, Duncan Murdoch >> wrote: >>> On 30/08/2013 3:09 PM, Marc Schwartz wrote: On Aug 30, 2013, at 2:00 PM, cstrato wrote: > Dear a

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread cstrato
Dear Henrik, Below is the 'QAReport.Rnw' file which I use on my Mac to reproduce your problem. Maybe this will help others to reproduce this problem, too. Best regards, Christian begin QAReport.Rnw \documentclass{article} \textwidth=6.2in \textheight=8.5in %\parskip=.3cm \oddsidem

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread cstrato
Dear Henrik, Thank you for this information, I will try to install the patched version. Best regards, Christian On 8/30/13 10:23 PM, Henrik Bengtsson wrote: Just checked the SVN logs and the comparison towards file timestamps have been dropped in R devel and R 3.0.1 SVN r63690 (Aug 25, 2013)

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Henrik Bengtsson
Just checked the SVN logs and the comparison towards file timestamps have been dropped in R devel and R 3.0.1 SVN r63690 (Aug 25, 2013) and newer. It is now simply comparing the set of files before and after. Try with one of those and I'll bet you that clean=TRUE does what it supposed to. /Henrik

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Duncan Murdoch
On 30/08/2013 3:21 PM, cstrato wrote: Dear Duncan, dear Marc, Thank you for your fast reply. Can you please tell me: If texi2pdf() won't delete files how are the files deleted when the directory structure is Test/inst/doc/? Is this done by Sweave()? No. Duncan Murdoch Best regards, Christi

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread cstrato
Dear Duncan, dear Marc, Thank you for your fast reply. Can you please tell me: If texi2pdf() won't delete files how are the files deleted when the directory structure is Test/inst/doc/? Is this done by Sweave()? Best regards, Christian On 8/30/13 9:14 PM, Duncan Murdoch wrote: On 30/08/201

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Henrik Bengtsson
On Fri, Aug 30, 2013 at 12:14 PM, Duncan Murdoch wrote: > On 30/08/2013 3:09 PM, Marc Schwartz wrote: >> >> On Aug 30, 2013, at 2:00 PM, cstrato wrote: >> >> > Dear all, >> > >> > To create a *.pdf file from a *.Rnw file I do: >> > >> > olddir <- getwd(); >> > setwd(outdir); >> > >> >

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Duncan Murdoch
On 30/08/2013 3:09 PM, Marc Schwartz wrote: On Aug 30, 2013, at 2:00 PM, cstrato wrote: > Dear all, > > To create a *.pdf file from a *.Rnw file I do: > > olddir <- getwd(); > setwd(outdir); > > tryCatch({Sweave("QAReport.Rnw"); >tools::texi2pdf("QAReport.tex", cl

Re: [Rd] Problem with texi2pdf(..,clean=TRUE)

2013-08-30 Thread Marc Schwartz
On Aug 30, 2013, at 2:00 PM, cstrato wrote: > Dear all, > > To create a *.pdf file from a *.Rnw file I do: > > olddir <- getwd(); > setwd(outdir); > > tryCatch({Sweave("QAReport.Rnw"); >tools::texi2pdf("QAReport.tex", clean=TRUE) > }, >