emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Matthew Landis <landis@isciences.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: problems with R graphics
Date: Thu, 01 Mar 2012 00:45:00 -0500	[thread overview]
Message-ID: <15674.1330580700@alphaville> (raw)
In-Reply-To: Message from Matthew Landis <landis@isciences.com> of "Thu, 01 Mar 2012 02:47:09 GMT." <loom.20120301T034145-223@post.gmane.org>

Matthew Landis <landis@isciences.com> 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	other threads:[~2012-03-01  5:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01  2:18 problems with R graphics Matthew Landis
2012-03-01  2:47 ` Matthew Landis
2012-03-01  5:45   ` Nick Dokos [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15674.1330580700@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=landis@isciences.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).