emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Riccardo Romoli <ric.romoli@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: R export graphics
Date: Sun, 12 Feb 2012 13:04:45 -1000	[thread overview]
Message-ID: <m162fblkky.fsf@tsdye.com> (raw)
In-Reply-To: <82798AB2-5E94-4F7D-84CE-6EF27843FD5D@gmail.com> (Riccardo Romoli's message of "Sun, 12 Feb 2012 23:32:40 +0100")

Riccardo Romoli <ric.romoli@gmail.com> writes:

> Hi, I have some trouble exporting figures from an R-org-babel session.
>
> The code I use to generate the figure is:
>
> #+name: my figure
> #+headers: :results graphics :file /Users/riccardoromoli/Documents/
> Dropbox/PhD/myFigure.pdf
> #+begin_src R :session *R* :exports results
> ...
> #+end_src
>
> So, if I use : file /User/riccardoromoli/Documents/...., all works
> right, but, if I use ~/Documents/..... the R console says:
>  Error in pdf(file = "~/Dropbox/PhD/myFigure.pdf") : cannot open file
> ~/Dropbox/PhD/myFigure.pdf'
>
> I usually work in the DropBox folder because at work I have a linux
> machine instead at my home I have an OsX machine, so if I could use
> "~", I should not change the code every time I switch between the two
> different computer.
>
> Best
> Riccardo
>
Aloha Riccardo,

If you work in your Dropbox/PhD folder (your .org files are there), then
you should be able to do :file myFigure.pdf on both systems.

hth,
Tom
-- 
Thomas S. Dye
http://www.tsdye.com

  reply	other threads:[~2012-02-12 23:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-12 22:32 R export graphics Riccardo Romoli
2012-02-12 23:04 ` Thomas S. Dye [this message]
2012-02-13  9:56   ` Riccardo Romoli

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=m162fblkky.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ric.romoli@gmail.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).