From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: problems with R graphics Date: Thu, 01 Mar 2012 00:45:00 -0500 Message-ID: <15674.1330580700@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2yp8-0001hm-Rb for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 00:45:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2yp7-00067F-3p for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 00:45:06 -0500 Received: from g6t0186.atlanta.hp.com ([15.193.32.63]:46008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2yp6-00062a-W3 for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 00:45:05 -0500 In-Reply-To: Message from Matthew Landis of "Thu, 01 Mar 2012 02:47:09 GMT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matthew Landis Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Matthew Landis wrote: > Matthew Landis 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