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

cstrato cstrato at aon.at
Fri Aug 30 21:00:14 CEST 2013


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, however 'clean=TRUE' does only work when:
      outdir <- "Test/inst/doc/"
but does not remove the files *.aux, *.log, *.toc when:
      outdir <- "Test/"

Why does function texi2pdf() require the directory structure for 
vignettes for the deletion of interim files?

(The help file?texi2pdf does not mention that this structure is necessary.)

Best regards
Christian
_._._._._._._._._._._._._._._._._._
C.h.r.i.s.t.i.a.n   S.t.r.a.t.o.w.a
V.i.e.n.n.a           A.u.s.t.r.i.a
e.m.a.i.l:        cstrato at aon.at
_._._._._._._._._._._._._._._._._._



More information about the R-devel mailing list