From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" 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: Thu, 1 Oct 2015 14:56:57 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhlqp-0001OD-1d for emacs-orgmode@gnu.org; Thu, 01 Oct 2015 17:57:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zhlql-0001dP-04 for emacs-orgmode@gnu.org; Thu, 01 Oct 2015 17:57:18 -0400 Received: from iport-acv2-out.ucsd.edu ([132.239.0.174]:65455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhlqk-0001cV-OG for emacs-orgmode@gnu.org; Thu, 01 Oct 2015 17:57:14 -0400 In-Reply-To: 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: "Cook, Malcolm" Cc: "emacs-orgmode@gnu.org" On Thu, 1 Oct 2015, Cook, Malcolm wrote: > Hello , > > I am not sure what the best solution is, but, in my hands using Org-mode > version 8.3.2-elpa org-20150929 the reg-expt used to "cleanup extra > prompts left in output" is over-aggressive and will trim session :output > at lines consisting exclusively of blanks and periods such as produced > when printing a BioConductor 'Views' object which wants to appear as I'd try (for example): #+BEGIN_SRC R :results value raw drawer :session require(GenomicRanges) capture.output(show(GRanges(seqnames=rep("a",100), IRanges(start=1:100,width=1),strand=rep("*",100)))) #+END_SRC rather than messing with the regexp. > > > I offer as a possible workaround the following: > > So far, I have had good success having removed provision for allowing leading whitespace by changing the regexp org-babel-R-evaluate-session from > "^\\([ ]*[>+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\)" > to > "^\\([>+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\)" > > But I don't know all the test cases so, YMMV.... Just guessing that the things that `(setq ess-eval-visibly nil)' generates (e.g., + + + + + > ) won't behave using your version. HTH, Chuck