emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] SOLVED: [babel] disable :session for a code block?


From: Rainer M Krug
Subject: [O] SOLVED: [babel] disable :session for a code block?
Date: Mon, 24 Feb 2014 10:31:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)

Andreas Leha <address@hidden> writes:

> Rainer M Krug <address@hidden> writes:
>
>> Hi
>>
>> I would like to save all in org defined variables into an R data
>> file. In general this works fine with the following code block:
>>
>>
>> #+begin_src R :session null :results output
>> dir.create("./data/", showWarnings=FALSE)
>> save.image("./data/orgData.rda")
>> #+end_src
>>
>> but, as I have defined a file wide session for R via 
>>
>> #+PROPERTY: session *R_MOBILIS*
>>
>> I have to create a new session for this, which is not that nice: when I
>> remove a variable in org, it is still in the R environment and will
>> therefore be saved. Therefore my question:
>>
>> what can I provide to the :session header, so that no session is used?
>> In other words: how can I run a single code block out-of-session when
>> all other are running in a session?
>>
>> Thanks,
>>
>> Rainer
>
>
> This should be
>  :session none

Perfect - thanks a lot

Rainer

>
> Regards,
> Andreas
>
>
>

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      address@hidden

Skype:      RMkrug

Attachment: pgp5EataHAbaS.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]