emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [org-babel] R, :session and empty line in #+results
@ 2010-11-30 23:23 Bernd Weiss
  2010-12-01  7:19 ` Thomas S. Dye
  0 siblings, 1 reply; 5+ messages in thread
From: Bernd Weiss @ 2010-11-30 23:23 UTC (permalink / raw)
  To: emacs-orgmode

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.

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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [org-babel] R, :session and empty line in #+results
  2010-11-30 23:23 [org-babel] R, :session and empty line in #+results Bernd Weiss
@ 2010-12-01  7:19 ` Thomas S. Dye
  2010-12-01 10:34   ` Bernd Weiss
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas S. Dye @ 2010-12-01  7:19 UTC (permalink / raw)
  To: Bernd Weiss; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [org-babel] R, :session and empty line in #+results
  2010-12-01  7:19 ` Thomas S. Dye
@ 2010-12-01 10:34   ` Bernd Weiss
  2010-12-01 15:01     ` Eric Schulte
  0 siblings, 1 reply; 5+ messages in thread
From: Bernd Weiss @ 2010-12-01 10:34 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [org-babel] R, :session and empty line in #+results
  2010-12-01 10:34   ` Bernd Weiss
@ 2010-12-01 15:01     ` Eric Schulte
  2010-12-01 16:43       ` Bernd Weiss
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Schulte @ 2010-12-01 15:01 UTC (permalink / raw)
  To: Bernd Weiss; +Cc: emacs-orgmode

Hi Bernd,

I've just pushed up a change which should remove these empty lines.

Best -- Eric

Bernd Weiss <bernd.weiss@uni-koeln.de> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [org-babel] R, :session and empty line in #+results
  2010-12-01 15:01     ` Eric Schulte
@ 2010-12-01 16:43       ` Bernd Weiss
  0 siblings, 0 replies; 5+ messages in thread
From: Bernd Weiss @ 2010-12-01 16:43 UTC (permalink / raw)
  To: Eric Schulte; +Cc: emacs-orgmode

Am 01.12.2010 10:01, schrieb Eric Schulte:
> Hi Bernd,
>
> I've just pushed up a change which should remove these empty lines.

Just updated my org-mode repository and it works great.

Thanks a lot!

Bernd

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-12-01 16:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-30 23:23 [org-babel] R, :session and empty line in #+results Bernd Weiss
2010-12-01  7:19 ` Thomas S. Dye
2010-12-01 10:34   ` Bernd Weiss
2010-12-01 15:01     ` Eric Schulte
2010-12-01 16:43       ` Bernd Weiss

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).