eythan...@gmail.com (Eythan Weg) writes:

> 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?
>

Each code block can only return a single output type, so you will have
to split your code block into two, however (given that you are using
sessions) this should not affect the runtime behavior.  The following
will work...

#+begin_src R :results output :session
print(seq(1,10))
#+end_src

#+begin_src R :file example.png :session
plot(seq(1,10))
#+end_src

Best -- Eric

>
> #+begin_src R :results output :session
> print(seq(1,10))
> plot(seq(1,10))
> #+end_src
>
> Thank you.
> Eythan   
>
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

Reply via email to