[R] simplest pgfSweave example results in error
Yihui Xie
xie at yihui.name
Fri Sep 30 05:00:58 CEST 2011
pgfSweave() tries to compile your tex file to PDF by default; that is
where texi2dvi() came from.
Are you compiling the same Rnw as you mentioned before? It looks odd
because there should not be a makefile unless you turned on
externalization (the Rnw file you provided did not use
externalization). If there is a makefile anyway, you may need to
delete it as the instruction said.
I have no idea about the warning about Encoding in DESCRIPTION, but an
extremely important piece of information that you must provide in this
mailing list is sessionInfo().
Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Thu, Sep 29, 2011 at 6:21 PM, syrvn <mentor_ at gmx.net> wrote:
> Hi Yihui,
>
> thank you very much for your answer.
>
> Just before I read your reply I deleted my basicTex and installed the full
> MacTex on my system.
> When I compile my .Rnw file I finally get a compiled PDF file. Nevertheless,
> R outputs the following error message:
>
> -----------------------
> Not regenerating makefile for externalization, if your figures have changed,
> remove /XXXX/test2.makefile and recompile.
> Error in tools::texi2dvi(paste(fn, "tex", sep = "."), pdf = pdf, ...) :
> Running 'texi2dvi' on '/XXXXX/test2.tex' failed.
> In addition: Warning message:
> 'DESCRIPTION' file has 'Encoding' field and re-encoding is not possible
> -----------------------
>
> It sounds a bit odd to me because in Eclipse I use the function:
>
> Build tex file using the Eclipse/Texclipse configuration:
>
> output format: PDF, build commands: pdflatex
>
> Now I am wondering why R runs texi2dvi at all?
>
> Referring to your answer. If I include or exclude \usepackage{tikz} does not
> make a difference.
> I get the same error message.
>
>
> Best regards,
> syrvn
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/simplest-pgfSweave-example-results-in-error-tp3856628p3858091.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list