Jeremie, > On Sep 28, 2021, at 12:34 AM, Jeremie Juste <jeremieju...@gmail.com> wrote: > > Thanks for the feedback. With the following patch, I made sure that > ess-inject-source is set to default before evaluating the buffer. > > So even if I set > (setq ess-inject-source 'function-and-buffer), I get the following > output. Note that I get the same output in the IESS console buffer when > I execute the command following command. > > #+begin_src R :session *R* :results output :async yes > Sys.sleep(2) > 1:5 > > 10:20 > 1:2 > #+end_src
OK. The patch works when applied on top of the previous 2 (but the second one has the same name, so there is that to watch out for). However, I think we are not quite home free. With `:async no', this works as expected: #+begin_src R :session *R* :results output :async no Sys.sleep(2) 1:5 10: a 1:2 #+end_src #+RESULTS: : : [1] 1 2 3 4 5 : : Error: object 'a' not found : : [1] 1 2 But changing to `:async yes', the error aborts in a way that omits the output. HTH, Chuck