emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Thomas S. Dye" <tsd@tsdye.com>
To: Bernd Weiss <bernd.weiss@uni-koeln.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [org-babel] R, :session and empty line in #+results
Date: Tue, 30 Nov 2010 21:19:21 -1000	[thread overview]
Message-ID: <BFD09E2C-6424-461C-BAA1-3F4DFD148F23@tsdye.com> (raw)
In-Reply-To: <4CF5876E.4040109@uni-koeln.de>

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

hth,
Tom
> Thanks for your help,
>
> Bernd
>
>
> P.S. As far as I can see my question is not related to Dr. Bate's  
> question on "Removing the blank lines between code and results  
> blocks in LaTeX export" <http://www.mail-archive.com/emacs-orgmode@gnu.org/msg29957.html 
> >
>
> _______________________________________________
> 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

  reply	other threads:[~2010-12-01  7:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-30 23:23 [org-babel] R, :session and empty line in #+results Bernd Weiss
2010-12-01  7:19 ` Thomas S. Dye [this message]
2010-12-01 10:34   ` Bernd Weiss
2010-12-01 15:01     ` Eric Schulte
2010-12-01 16:43       ` Bernd Weiss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BFD09E2C-6424-461C-BAA1-3F4DFD148F23@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=bernd.weiss@uni-koeln.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).