* [babel] disable :session for a code block?
@ 2014-02-23 17:40 Rainer M Krug
2014-02-23 20:50 ` Andreas Leha
0 siblings, 1 reply; 3+ messages in thread
From: Rainer M Krug @ 2014-02-23 17:40 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]
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
--
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: Rainer@krugs.de
Skype: RMkrug
[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [babel] disable :session for a code block?
2014-02-23 17:40 [babel] disable :session for a code block? Rainer M Krug
@ 2014-02-23 20:50 ` Andreas Leha
2014-02-24 9:31 ` SOLVED: " Rainer M Krug
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Leha @ 2014-02-23 20:50 UTC (permalink / raw)
To: emacs-orgmode
Rainer M Krug <Rainer@krugs.de> 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
Regards,
Andreas
^ permalink raw reply [flat|nested] 3+ messages in thread
* SOLVED: [babel] disable :session for a code block?
2014-02-23 20:50 ` Andreas Leha
@ 2014-02-24 9:31 ` Rainer M Krug
0 siblings, 0 replies; 3+ messages in thread
From: Rainer M Krug @ 2014-02-24 9:31 UTC (permalink / raw)
To: Andreas Leha; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1448 bytes --]
Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
> Rainer M Krug <Rainer@krugs.de> 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: Rainer@krugs.de
Skype: RMkrug
[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-24 9:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-23 17:40 [babel] disable :session for a code block? Rainer M Krug
2014-02-23 20:50 ` Andreas Leha
2014-02-24 9:31 ` SOLVED: " Rainer M Krug
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.