From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: org babel R source blocks :results output with :session includes extra blank lines Date: Tue, 28 Aug 2018 16:57:03 +0000 Message-ID: <14090386-F521-4CCF-9AAD-046C67A2FD34@ucsd.edu> References: <359545e6-bb72-2613-124d-696142f33fb4@schwilk.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuhIs-0007Hi-2V for emacs-orgmode@gnu.org; Tue, 28 Aug 2018 12:57:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuhIp-00030r-7R for emacs-orgmode@gnu.org; Tue, 28 Aug 2018 12:57:17 -0400 Received: from iport-acv3-out.ucsd.edu ([132.239.0.4]:37333) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1fuhIl-0002v1-7Y for emacs-orgmode@gnu.org; Tue, 28 Aug 2018 12:57:13 -0400 In-Reply-To: <359545e6-bb72-2613-124d-696142f33fb4@schwilk.org> Content-Language: en-US Content-ID: <2EB2AD752BD9264EBE746C33DDEB9026@AD.UCSD.EDU> 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: Dylan Schwilk Cc: "emacs-orgmode@gnu.org" Cannot confirm. See inline. > On Aug 28, 2018, at 7:48 AM, Dylan Schwilk wrote: >=20 > Hello, >=20 > I recently have run into a change in output from my R language source cod= e blocks. >=20 > I have found that when I include :session to the source block header, I n= ow get > extra blank lines in the #+results. This has broken my lecture slides for= my > courses with too much extra blank space. >=20 > for example: >=20 > #+begin_src R :results output :exports both :session > 1 + 2 > 3 + 4 > print("the end") > #+end_src >=20 > #+results: > : [1] 3 > : > : [1] 7 > : > : [1] "the end" >=20 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). >=20 > I do not have this issue when I omit the :session header argument, eg: >=20 > #+begin_src R :results output :exports both > 1 + 2 > 3 + 4 > print("the end") > #+end_src >=20 > #+results: > : [1] 3 > : [1] 7 > : [1] "the end" >=20 >=20 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 >=20 [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