On Wed, Feb 1, 2012 at 5:29 PM, Yihui Xie <x...@yihui.name> wrote:
> You are right (ideally), but this is a long-lasting annoying problem
> with R's default graphical device which is pdf() in the
> non-interactive session. Unfortunately it has to create a file under
> the current working directory (usually named Rplots.pdf). I requested
> a true null device which does not write files, and it was implemented
> in R 2.14.1, but again, unfortunately it has a bug which makes this
> null device still write a file named NA. I have not got any response
> from R core yet about this bug.
>
> I can submit a simple patch to lyxsweave.R to avoid this problem by
> redirecting the default file to a temp dir, but I'm not sure if it is
> still in time. It should not break string freeze, though.
>
It would be nice, indeed. Richard, JMarc, can such a patch go in for 2.0.3?

Liviu


> Regards,
> Yihui
> --
> Yihui Xie <xieyi...@gmail.com>
> Phone: 515-294-2465 Web: http://yihui.name
> Department of Statistics, Iowa State University
> 2215 Snedecor Hall, Ames, IA
>
>
>
> On Wed, Feb 1, 2012 at 10:18 AM, Liviu Andronic <landronim...@gmail.com> 
> wrote:
>> On Wed, Feb 1, 2012 at 5:15 PM, Yihui Xie <x...@yihui.name> wrote:
>>> I guess you compiled the document under
>>> /usr/local/share/lyx-2.0.3svn/examples/, right?
>>>
>>> I believe the problem is that R has no write privilege to that
>>> directory, so the default pdf() device cannot be started there. You
>>> can copy sweave.lyx to a directory where you have write privilege, and
>>> see if it compiles correctly.
>>>
>> Hmm, isn't the compilation supposed to be performed in a /tmp/ dir,
>> where permissions are available?
>>
>> Liviu



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail

Reply via email to