* Path of file to save code block results
@ 2014-03-26 1:46 Yi Zhang
2014-03-26 12:33 ` Sebastien Vauban
0 siblings, 1 reply; 2+ messages in thread
From: Yi Zhang @ 2014-03-26 1:46 UTC (permalink / raw)
To: emacs-orgmode
Hi All,
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?
Thanks,
YZ
----------------------------------------------
Yi Zhang, Ph.D.
School of Civil & Construction Engineering
Oregon State University
Corvallis, OR, 97331
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Path of file to save code block results
2014-03-26 1:46 Path of file to save code block results Yi Zhang
@ 2014-03-26 12:33 ` Sebastien Vauban
0 siblings, 0 replies; 2+ messages in thread
From: Sebastien Vauban @ 2014-03-26 12:33 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-26 12:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-26 1:46 Path of file to save code block results Yi Zhang
2014-03-26 12:33 ` Sebastien Vauban
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).