From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dylan Schwilk Subject: Re: org babel R source blocks :results output with :session includes extra blank lines Date: Tue, 28 Aug 2018 17:24:00 -0500 Message-ID: References: <359545e6-bb72-2613-124d-696142f33fb4@schwilk.org> <14090386-F521-4CCF-9AAD-046C67A2FD34@ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fumag-0000SC-Br for emacs-orgmode@gnu.org; Tue, 28 Aug 2018 18:36:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fumPZ-0007oz-Gu for emacs-orgmode@gnu.org; Tue, 28 Aug 2018 18:24:36 -0400 Received: from aibo.runbox.com ([91.220.196.211]:42504) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fumPZ-0007nG-6z for emacs-orgmode@gnu.org; Tue, 28 Aug 2018 18:24:33 -0400 In-Reply-To: <14090386-F521-4CCF-9AAD-046C67A2FD34@ucsd.edu> 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" To: "emacs-orgmode@gnu.org" Cc: "Berry, Charles" Thank you and my apologies. Seeing the session output you posted convinced me the problem was with my ess settings. Of course I should have known that because I could find no-one else with the same problem and I could see no change to ob-R.el in the git repo in the past months that could have affected this. The problem turned out to be the ess variable ess-eval-visibly. The default, nil works fine with ob-R (doc: "If nil, ESS doesn’t print input commands and doesn’t wait for the process."). I had accidentally set to 'nowait (doc: If ’nowait, ESS still shows the input commands, but don’t wait for the process.). My apologies for the spurious post. I had not realized that I was setting that ess variable. Sincerely, Dylan On 08/28/2018 11:57 AM, Berry, Charles wrote: > Cannot confirm. See inline. > >> On Aug 28, 2018, at 7:48 AM, Dylan Schwilk wrote: >> >> Hello, >> >> I recently have run into a change in output from my R language source code blocks. >> >> I have found that when I include :session to the source block header, I now get >> extra blank lines in the #+results. This has broken my lecture slides for my >> courses with too much extra blank space. >> >> for example: >> >> #+begin_src R :results output :exports both :session >> 1 + 2 >> 3 + 4 >> print("the end") >> #+end_src >> >> #+results: >> : [1] 3 >> : >> : [1] 7 >> : >> : [1] "the end" >> > > With the :session arg I get the output as you show it below. > > This was with master on commit f79545 from last month and on today's master (commit 38a8901). > >> >> I do not have this issue when I omit the :session header argument, eg: >> >> #+begin_src R :results output :exports both >> 1 + 2 >> 3 + 4 >> print("the end") >> #+end_src >> >> #+results: >> : [1] 3 >> : [1] 7 >> : [1] "the end" >> >> > > > FWIW, my R session looks like this > > > --8<---------------cut here---------------start------------->8--- > [...] > Type 'demo()' for some demos, 'help()' for on-line help, or > 'help.start()' for an HTML browser interface to help. > Type 'q()' to quit R. > >> setwd('/Users/cberry/') >> 1 + 2 > 3 + 4 > print("the end") > 'org_babel_R_eoe' > [1] 3 >> [1] 7 >> > [1] "the end" >> [1] "org_babel_R_eoe" > --8<---------------cut here---------------end--------------->8--- > > If this is what your session looks like, then we need to dig deeper into ob-R. > > HTH, > > Chuck > > > >