emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: :dir argument does not seem to be working
Date: Fri, 10 Aug 2012 15:05:04 -0500	[thread overview]
Message-ID: <CA+M2ft-qxmdk_R_gPBo6KReZBmaiYprFz_QC9_OSzG5gcr=r9Q@mail.gmail.com> (raw)

Here's a hopefully reproducible example:

----------

* Test

#+header: :dir C:/Users/username/Desktop :file test.png
#+begin_src R :session R :results output graphics :exports results
setwd("C:/Users/username/Documents")
x <- 1:10
y <- x^2
plot(x,y)
#+end_src

----------

I prefer to use R on Linux, but need to stay in Windows at work
sometimes. I'm trying to export my plots to a different directory than
the org file I'm using. I tend to start R in
"C:/Users/username/Documents" on Windows 7 because that's where I set
my library directory and R has trouble loading things if I don't start
there first, load my libraries, and then move to my data directory.

In any case, for the above, when I switch to the R session called =R=,
and do =getwd()= I get C:/Users/username/Documents, which is where the
png ends up, not on the Desktop.

Is this something in my usage I'm doing wrong?


Thanks,
John

             reply	other threads:[~2012-08-10 20:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-10 20:05 John Hendy [this message]
2012-08-10 20:13 ` :dir argument does not seem to be working John Hendy
2012-08-10 21:32   ` John Hendy

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='CA+M2ft-qxmdk_R_gPBo6KReZBmaiYprFz_QC9_OSzG5gcr=r9Q@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).