Jack Kamm <jackk...@gmail.com> writes: > Consider the following R block, which prints the occurrences of each > element in a list, including NAs: > > #+begin_src R :session :results output :async > table(c("ab","ab","c",NA,NA), useNA='always') > #+end_src > > #+RESULTS: > : ab c <NA> > : 2 1 2 > > Since Org 9.7, it instead prints: > > #+RESULTS: > : ab c < > : 2 1 2 > ... > The best solution I could think of was to define a new buffer-local > variable, `org-babel-comint-prompt-regexp-override', which could be used > to override `comint-prompt-regexp' for the purpose of filtering. I > attach a patch with this solution.
Maybe we can simply override `comint-prompt-regexp' as we do in ob-shell? The default regexp seems to be too permissive. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>