[R] Sweave: no eps fig
marc_schwartz at me.com
Sat May 7 02:51:50 CEST 2011
On May 6, 2011, at 6:00 PM, mk90-40 at gmx.de wrote:
> Hi everyone,
> I'm using R, Latex and Sweave for some years now, but today it confuses me alot:
> Running Sweave produces only figures in .pdf format, no .eps figures.
> The header looks like this:
> <<echo=TRUE, fig=TRUE, label=Fig1>>=
> There was no error message.
> Does anybody have an idea?
> Any changes in the Sweave-package?
> Or a missing driver or something like that?
> I recently switched to another OS (Fedora RedHat) - might that be the reason?
> Grateful for any suggestions,
Starting with R 2.13.0, the default in Sweave is to produce only PDF and not EPS.
You really only need EPS plots if you are doing postscript magic (eg. PSTricks, which I use) and need to use latex rather than pdflatex.
o The default for Sweave() is to produce only PDF figures (rather
than both EPS and PDF).
Always a good idea to read news() if running a new version... :-)
You can either set:
<<echo=TRUE, fig=TRUE, label=Fig1, eps=true>>=
More information about the R-help