From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [org-babel] R, :session and empty line in #+results Date: Wed, 01 Dec 2010 08:01:42 -0700 Message-ID: <87eia1fsfd.fsf@gmail.com> References: <4CF5876E.4040109@uni-koeln.de> <4CF624B8.7080207@uni-koeln.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=49714 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNoBu-0007Th-Uv for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 10:01:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNoBo-0004oi-F3 for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 10:01:54 -0500 Received: from mail-gw0-f41.google.com ([74.125.83.41]:57497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNoBo-0004oO-Bz for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 10:01:48 -0500 Received: by gwj22 with SMTP id 22so1646203gwj.0 for ; Wed, 01 Dec 2010 07:01:47 -0800 (PST) In-Reply-To: <4CF624B8.7080207@uni-koeln.de> (Bernd Weiss's message of "Wed, 01 Dec 2010 05:34:32 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernd Weiss Cc: emacs-orgmode@gnu.org Hi Bernd, I've just pushed up a change which should remove these empty lines. Best -- Eric Bernd Weiss writes: > Am 01.12.2010 02:19, schrieb Thomas S. Dye: >> Aloha Bernd, >> >> On Nov 30, 2010, at 1:23 PM, Bernd Weiss wrote: >> >>> Dear all, >>> >>> I would like to use R objects across/among code blocks. Therefore, I >>> included the header argument ":session" which then produces the >>> following results: >>> >>> >>> #+BEGIN_SRC R :results output :session >>> x <- 1 >>> x >>> x + 1 >>> #+END_SRC >>> >>> #+results: >>> : >>> : [1] 1 >>> : [1] 2 >>> >>> #+BEGIN_SRC R :results output :session >>> x >>> #+END_SRC >>> >>> #+results: >>> : [1] 1 >>> >>> >>> How can I get rid of the first line of the first #+results-block? BTW: >>> if I remove the ":session" argument this empty line disappears. >>> >> >> #+BEGIN_SRC R >> x <- 1 >> x >> x + 1 >> #+END_SRC >> >> #+results: >> : 2 > > > Hi Tom, > > Thanks for your reply! > > I should have noted that I am preparing a beamer presentation and I > need all the code and the results. So, your answer does not solve my > problem. > > Maybe this is another information I should have given: To control > org-babel's behaviour, I am defining the following buffer-wide header > arguments: > > #+BABEL: :results output replace :exports both :comments both :session > > > Bernd > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode