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