Jeremie, > On Sep 26, 2021, at 10:13 AM, Jeremie Juste <jeremieju...@gmail.com> wrote: > > But for the time being result output produces the following output. > > #+begin_src R :session *R* :results output :async > Sys.sleep(1) > print(1:5) > #+end_src > > #+RESULTS: > : > Sys.sleep(1) > : > print(1:5) > : [1] 1 2 3 4 5 > : > 'ob_comint_async_R_end_53c0a42fed17cf78f5508e5293029430' > > > From my understanding the async command of python does not suffer from > this issue. I'm not sure if the issue needs to be solve at the ob-R.el > or at the ob-core.el. I welcome any comments on this patch or any idea > to move it forward.
It looks like you have `(setq ess-eval-visibly t)' here. I think that is a default setting. With (setq ess-eval-visibly nil), I get #+RESULTS: : > : [1] 1 2 3 4 5 : > > which is better, but the prompts still need cleaning along the lines of `org-babel-R-evaluate-session'. It seems like this is an ob-R.el issue. HTH, Chuck