From cstrato at aon.at  Fri Aug 30 21:00:14 2013
From: cstrato at aon.at (cstrato)
Date: Fri, 30 Aug 2013 21:00:14 +0200
Subject: [Rd] Problem with texi2pdf(..,clean=TRUE)
Message-ID: <5220EBBE.8080504@aon.at>

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
_._._._._._._._._._._._._._._._._._



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