From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: Path of file to save code block results Date: Wed, 26 Mar 2014 13:33:03 +0100 Message-ID: <86a9cdw35s.fsf@somewhere.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Yi Zhang wrote: > The evaluation of code block > > #+begin_src R :file img.pdf > hist(rnorm(100)) > #+END_SRC > > does not output "img.pdf" to the current folder. But if I use "~/img.pdf", > file will be saved to "~/". Am I missing something here? You miss ":results graphics", for example: #+begin_src R :results graphics :file img.pdf hist(rnorm(100)) #+END_SRC Though, why is the behavior different whether you have ~/ or not in the filename?? Best regards, Seb -- Sebastien Vauban