From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cook, Malcolm" Subject: Re: BUG: emacs orgmode ob-R.el function org-babel-R-evaluate-session over aggressively performs "; ; cleanup extra prompts left in output" and a possible workaround Date: Sat, 7 Nov 2015 23:22:22 +0000 Message-ID: <3333fb4a-6541-4b80-b1b4-e7f6ff80ee83@email.android.com> References: <2a1b8832412e49b7a0a4d231c3e289cf@exchsrv2.sgc.loc> <87mvusob7j.fsf@nicolasgoaziou.fr>, Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_3333fb4a65414b80b1b4e7f6ff80ee83emailandroidcom_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvCoY-0006LJ-OJ for emacs-orgmode@gnu.org; Sat, 07 Nov 2015 18:22:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvCoT-00047k-J0 for emacs-orgmode@gnu.org; Sat, 07 Nov 2015 18:22:30 -0500 Received: from smtp01.stowers.org ([40.141.174.61]:46679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvCoT-00047g-C7 for emacs-orgmode@gnu.org; Sat, 07 Nov 2015 18:22:25 -0500 In-Reply-To: Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Charles Berry Cc: "emacs-orgmode@gnu.org" , Nicolas Goaziou --_000_3333fb4a65414b80b1b4e7f6ff80ee83emailandroidcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Chuck for setting this through. I've never been happy at how Babel arranged the inter process communication= with R including the need for cleaning up the output with scary regular e= xpressions like this. Also there are some of uses of temp files that sometime cause of bugs espec= ially when running R under tramp on a remote host. I'll be sure to report i= t next time I see it. I've wondered if there is not a better way for Babel to share an interactiv= e session with the user. For instance, if we wanted to support a new form= of results processing on addition to value and output.... Namely, "transcr= ipt", wherein the results of evaluating a source block would be a transcrip= t of the season with statements interwoven with their respective outputs...= . I suspect that this would not be easy extension of the current approach s= ince it would require parsing the source into statements that get evaluated= sequentially with visible results echoed into the transcript. But I digress..... Thanks again for running with my workaround.... On Nov 7, 2015 3:31 PM, "Charles C. Berry" wrote: On Thu, 5 Nov 2015, Nicolas Goaziou wrote: [...] > Would you want to provide a patch for that (and commit it while you're > at it)? > Done. Chuck --_000_3333fb4a65414b80b1b4e7f6ff80ee83emailandroidcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Thanks Chuck for setting this through. 

I've never been happy at how Babel arranged the inter proces= s communication with R  including the need for cleaning up the output = with scary regular expressions like this. 

Also there are some of uses of temp files that sometime caus= e of bugs especially when running R under tramp on a remote host. I'll be s= ure to report it next time I see it.

I've wondered if there is not a better way for Babel to shar= e an interactive session with the user.   For instance, if we wan= ted to support a new form of results processing on addition to value and ou= tput.... Namely, "transcript", wherein the results of evaluating a source block would be a transcript of the season with stat= ements interwoven with their respective outputs.... I suspect that this wou= ld not be easy extension of the current approach since it would require par= sing the source into statements that get evaluated sequentially with visible results echoed into the trans= cript.

But I digress.....

Thanks again for running with my workaround....

On Nov 7, 2015 3:31 PM, "Charles C. Berry= " <ccberry@ucsd.edu> wrote:
On Thu, 5 Nov 2015, Nicolas Goaziou wrote:
[...]
> Would you want to provide a patch for that (and commit it while you're=
> at it)?
>

Done.

Chuck
--_000_3333fb4a65414b80b1b4e7f6ff80ee83emailandroidcom_--