emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] problems with R graphics


From: Nick Dokos
Subject: Re: [O] problems with R graphics
Date: Thu, 01 Mar 2012 00:45:00 -0500

Matthew Landis <address@hidden> wrote:

> Matthew Landis <landis <at> isciences.com> writes:
> 
> ...
> 
> > #+begin_src R :session :results graphics :file regress_session.png :exports 
> both
> > 
> >  plot(x, y, bty = 'n')
> >  abline(f, lty = 'dashed')
> > 
> > #+end_src
> > This code block doesn't work. No error, but no file is created.
> 
> ...
> 
> I actually figured this one out just now.  If creating a file in a 'stand 
> alone' 
> code block, the default directory is the directory that the org file itself 
> is 
> in.  However, in a 'session' code block, the default directory is something 
> else 
> (R's default?).  If I specify the full path to the file in the 'session' code 
> block, things work better.
> 

Maybe Windows is doing something different, but on Linux, both plots are
produced with no problem, both in the current directory.

Nick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]