Eythan, This sounds similar to something I'd already done on Worg, ie: dual format returns in R. The first example (RBabelExample) is really R outputting to PNG for viewing inline in emacs with inline-images, and PDF for inclusion into Latex.
Maybe you can adapt it to return your text, and graph separately. http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html Enjoy. On Fri, Jun 24, 2011 at 06:10:47AM -0400, Eythan Weg wrote: > > Hi, > > How could I effect the plot saved in a file and the output produced > shown in the buffer by using a single execution of R in the following > snippet? > > #+begin_src R :results output :session > print(seq(1,10)) > plot(seq(1,10)) > #+end_src > > Thank you. > Eythan > > ------------------------------------------------------------------ Russell Adams rlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3