From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: suppress leading ":" in org-babel output Date: Tue, 28 May 2019 16:57:50 +0000 Message-ID: References: <8736l08j5m.fsf@gmail.com> <87ef4jl3ud.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVfQv-000686-HJ for emacs-orgmode@gnu.org; Tue, 28 May 2019 12:58:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVfQu-0006On-DE for emacs-orgmode@gnu.org; Tue, 28 May 2019 12:58:41 -0400 Received: from iport-acv3-out.ucsd.edu ([132.239.0.4]:35075) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVfQt-0006FM-JI for emacs-orgmode@gnu.org; Tue, 28 May 2019 12:58:40 -0400 In-Reply-To: <87ef4jl3ud.fsf@alphaville.usersys.redhat.com> Content-Language: en-US Content-ID: <44BF54F353330A41A13B7D942DF23090@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: Nick Dokos Cc: "emacs-orgmode@gnu.org" > On May 27, 2019, at 7:17 PM, Nick Dokos wrote: >=20 > Jeremie Juste writes: >=20 >> Hello, >>=20 >> I recall seeing this thread on the mailing list but I cannot find it >> back. >>=20 >> I would like to suppress the first line leading ":" in the following out= put >>=20 >>=20 >> #+NAME:mean_purchase_per_shopping_trip >>=20 >> #+BEGIN_SRC R :var x=3D6 :results output :session *R* >> a <-sprintf("%.2f",12.234324) >> cat(a,sep=3D"\n") >> #+END_SRC >>=20 >> #+RESULTS: mean_purchase_per_shopping_trip >> :=20 >>=20 >> : 12.23 >>=20 >=20 > FWIW, I just get the last line: >=20 > #+NAME:mean_purchase_per_shopping_trip >=20 > #+BEGIN_SRC R :var x=3D6 :results output :session *R* > a <-sprintf("%.2f",12.234324) > cat(a,sep=3D"\n") > #+END_SRC >=20 > #+RESULTS: > : 12.23 >=20 > This is with=20 >=20 > GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32) = of 2019-05-01 > Org mode version 9.2.3 (release_9.2.3-367-gd79e80 @ /home/nick/elisp/or= g-mode/lisp/) > R version 3.5.3 (2019-03-11) -- "Great Truth" >=20 > on Fedora 29. >=20 I get what Jeremie reports (but he has a blank line inserted after the firs= t line, IIUC) This is with: GNU Emacs 26.1=20 Org 9.2.3 ess-version: 18.10.3 R version 3.6.0 (2019-04-26) I believe this is new-ish behavior. I see some older files without the extr= a line. Also, I think there are recent changes in ESS that pertain to comin= t sessions. FWIW, here is a clip from my session: --8<---------------cut here---------------start------------->8--- > x <- 6L a <-sprintf("%.2f",12.234324) cat(a,sep=3D"\n") 'org_babel_R_eoe' > >=20 12.23 >=20 [1] "org_babel_R_eoe" --8<---------------cut here---------------end--------------->8--- If Nick sees something different maybe a change in ESS is the culprit. Not sure what the right path forward is ob-R.el, but as a workaround the OP= can use a :post header arg to strip the offending line. HTH, Chuck