emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] R export graphics


From: Riccardo Romoli
Subject: Re: [O] R export graphics
Date: Mon, 13 Feb 2012 10:56:51 +0100

Hi Thomas,
thanks for your fast replay.
I had thought of this solution too but, since I have many folders that I need to move between, I need to have a "pivot" to start with.

Best
Riccardo

2012/2/13 Thomas S. Dye <address@hidden>
Riccardo Romoli <address@hidden> 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 via email to

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