[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] async process in R
From: |
Berry, Charles |
Subject: |
Re: [PATCH] async process in R |
Date: |
Tue, 28 Sep 2021 18:22:08 +0000 |
Jeremie,
> On Sep 28, 2021, at 12:34 AM, Jeremie Juste <jeremiejuste@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
- Re: [PATCH] async process in R, (continued)
Re: [PATCH] async process in R, Bastien, 2021/09/27
Re: [PATCH] async process in R, Berry, Charles, 2021/09/27
- Re: [PATCH] async process in R, Jeremie Juste, 2021/09/27
- Re: [PATCH] async process in R, Jeremie Juste, 2021/09/27
- Re: [PATCH] async process in R, Berry, Charles, 2021/09/27
- Re: [PATCH] async process in R, Berry, Charles, 2021/09/27
- Re: [PATCH] async process in R, Jeremie Juste, 2021/09/28
- Re: [PATCH] async process in R,
Berry, Charles <=
- Re: [PATCH] async process in R, Jeremie Juste, 2021/09/28