From rdpeng at gmail.com  Tue May 11 23:20:13 2010
From: rdpeng at gmail.com (Roger Peng)
Date: Tue, 11 May 2010 17:20:13 -0400
Subject: [Rd] Sweave Feature Requests and Questions
In-Reply-To: <x2lb7bfe54e1005081635of51056f4v186ff8edb116cf6b@mail.gmail.com>
References: <x2lb7bfe54e1005081635of51056f4v186ff8edb116cf6b@mail.gmail.com>
Message-ID: <AANLkTim4Z43TI_v3VpUGSxO0T3lSu2V-rLl3OZq4fkqa@mail.gmail.com>

Hi, see below.

On Sat, May 8, 2010 at 7:35 PM, Charlotte Maia <maiagx at gmail.com> wrote:

<snip>

> Furthermore, any help appreciated here:
> 1. Does anyone know how to build Sweave documents, using Make, without
> starting a new instance (or multiple instances) of R, every time Make
> is called?

This can be worked around if you have code sections that don't change
at all, put them in a separate file and import them into the "main"
LaTeX document using '\input'. Then use the Makefile to specify the
dependencies between the LaTeX files. That way, when you run make the
first time, everything will run, but on subsequent calls to make,
Sweave will not be called as long as the code in the separate file
hasn't changed.

> 2. Does anyone know a simple workaround to problem 3, without killing
> the entire Sweave.sty file?
>
> Furthermore, I'm temped to stop Sweave from generating all the eps
> files (I saw an option for this in the Sweave documentation), however
> I'm concerned it may stop others from building the document, if they
> use postscript.
>
> Then again, do enough people use postscript, to warrant such consideration?

I don't think I've used postscript in about 8 years.

-roger

-- 
Roger D. Peng  |  http://www.biostat.jhsph.edu/~rpeng/



[Rd] Sweave Feature Requests and Questions
Roger Peng