emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Path of file to save code block results


From: Sebastien Vauban
Subject: Re: [O] Path of file to save code block results
Date: Wed, 26 Mar 2014 13:33:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)

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




reply via email to

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