* evaluating all R code blocks (newbie question)
@ 2011-01-20 15:04 Julian Burgos
2011-01-20 15:38 ` Lawrence Mitchell
2011-01-21 0:20 ` Leo Alekseyev
0 siblings, 2 replies; 7+ messages in thread
From: Julian Burgos @ 2011-01-20 15:04 UTC (permalink / raw)
To: Emacs-orgmode
Dear list,
Hopefully this is not too basic, nor has been answered before.
I would like to know if there is away to have alll R code blocks in a
document evaluated automatically (i.e. without query) when exporting
to Latex. Now I have to answer "yes" multiple times to the question
"Evaluate this R code block in your system" every time I do an export,
which is somewhat annoying.
Many thanks,
Julian
--
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax: +354-5752001
Netfang/Email: julian@hafro.is, jmburgos@uw.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: evaluating all R code blocks (newbie question)
2011-01-20 15:04 evaluating all R code blocks (newbie question) Julian Burgos
@ 2011-01-20 15:38 ` Lawrence Mitchell
2011-01-20 15:53 ` Julian Burgos
2011-01-21 0:20 ` Leo Alekseyev
1 sibling, 1 reply; 7+ messages in thread
From: Lawrence Mitchell @ 2011-01-20 15:38 UTC (permalink / raw)
To: emacs-orgmode
Julian Burgos wrote:
> Dear list,
> Hopefully this is not too basic, nor has been answered before.
> I would like to know if there is away to have alll R code blocks in a
> document evaluated automatically (i.e. without query) when exporting
> to Latex. Now I have to answer "yes" multiple times to the question
> "Evaluate this R code block in your system" every time I do an export,
> which is somewhat annoying.
See the variable `org-confirm-babel-evaluate'. Be careful about
unilaterally setting it to nil in case you receive org files with
code blocks from people you don't trust.
Cheers,
Lawrence
--
Lawrence Mitchell <wence@gmx.li>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: evaluating all R code blocks (newbie question)
2011-01-20 15:38 ` Lawrence Mitchell
@ 2011-01-20 15:53 ` Julian Burgos
2011-01-20 16:00 ` Lawrence Mitchell
0 siblings, 1 reply; 7+ messages in thread
From: Julian Burgos @ 2011-01-20 15:53 UTC (permalink / raw)
To: emacs-orgmode
Many thanks Lawrence. Yes, I´m aware of the risks, but for now I am
only working with my own files.
Do you know if it is possible to evaluation confirmation as a header
option, so I can left it on but turn it off in my own files?
Thanks again,
Julian
On Thu, Jan 20, 2011 at 3:38 PM, Lawrence Mitchell <wence@gmx.li> wrote:
> Julian Burgos wrote:
>> Dear list,
>
>> Hopefully this is not too basic, nor has been answered before.
>
>> I would like to know if there is away to have alll R code blocks in a
>> document evaluated automatically (i.e. without query) when exporting
>> to Latex. Now I have to answer "yes" multiple times to the question
>> "Evaluate this R code block in your system" every time I do an export,
>> which is somewhat annoying.
>
> See the variable `org-confirm-babel-evaluate'. Be careful about
> unilaterally setting it to nil in case you receive org files with
> code blocks from people you don't trust.
>
> Cheers,
> Lawrence
> --
> Lawrence Mitchell <wence@gmx.li>
>
>
> _______________________________________________
> 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
>
--
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax: +354-5752001
Netfang/Email: julian@hafro.is, jmburgos@uw.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: evaluating all R code blocks (newbie question)
2011-01-20 15:53 ` Julian Burgos
@ 2011-01-20 16:00 ` Lawrence Mitchell
2011-01-20 16:19 ` Julian Burgos
2011-01-20 16:22 ` Eric Schulte
0 siblings, 2 replies; 7+ messages in thread
From: Lawrence Mitchell @ 2011-01-20 16:00 UTC (permalink / raw)
To: emacs-orgmode
Julian Burgos wrote:
> Many thanks Lawrence. Yes, I'm aware of the risks, but for now I am
> only working with my own files.
> Do you know if it is possible to evaluation confirmation as a header
> option, so I can left it on but turn it off in my own files?
I don't believe it is. If you think about, this is also a
security hole, since a malicious user could put the relevant
header in, even if you've set org-confirm-babel-evaluate to t.
Cheers,
Lawrence
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: evaluating all R code blocks (newbie question)
2011-01-20 16:00 ` Lawrence Mitchell
@ 2011-01-20 16:19 ` Julian Burgos
2011-01-20 16:22 ` Eric Schulte
1 sibling, 0 replies; 7+ messages in thread
From: Julian Burgos @ 2011-01-20 16:19 UTC (permalink / raw)
To: Lawrence Mitchell; +Cc: emacs-orgmode
Yes, you are right. For now, I´ll turn confirmation off for R code
only, and keep an eye on .org files from unknown origins.
All the best,
Julian
On Thu, Jan 20, 2011 at 4:00 PM, Lawrence Mitchell <wence@gmx.li> wrote:
> Julian Burgos wrote:
>> Many thanks Lawrence. Yes, I'm aware of the risks, but for now I am
>> only working with my own files.
>> Do you know if it is possible to evaluation confirmation as a header
>> option, so I can left it on but turn it off in my own files?
>
> I don't believe it is. If you think about, this is also a
> security hole, since a malicious user could put the relevant
> header in, even if you've set org-confirm-babel-evaluate to t.
>
> Cheers,
> Lawrence
>
>
> _______________________________________________
> 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
>
--
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax: +354-5752001
Netfang/Email: julian@hafro.is, jmburgos@uw.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: evaluating all R code blocks (newbie question)
2011-01-20 16:00 ` Lawrence Mitchell
2011-01-20 16:19 ` Julian Burgos
@ 2011-01-20 16:22 ` Eric Schulte
1 sibling, 0 replies; 7+ messages in thread
From: Eric Schulte @ 2011-01-20 16:22 UTC (permalink / raw)
To: Lawrence Mitchell; +Cc: emacs-orgmode
Lawrence Mitchell <wence@gmx.li> writes:
> Julian Burgos wrote:
>> Many thanks Lawrence. Yes, I'm aware of the risks, but for now I am
>> only working with my own files.
>> Do you know if it is possible to evaluation confirmation as a header
>> option, so I can left it on but turn it off in my own files?
>
> I don't believe it is. If you think about, this is also a
> security hole, since a malicious user could put the relevant
> header in, even if you've set org-confirm-babel-evaluate to t.
>
Indeed this is the case, the :eval header argument [1] can be used
inhibit the evaluation of some code blocks, if the user already has
(setq org-confirm-babel-evaluate nil)
but it can not be used to remove the need for confirmation of code block
evaluation when the user has
(setq org-confirm-babel-evaluate t)
For security reasons.
Personally I don't require confirmation of evaluation as I find that I
both trust everyone sharing org-mode files with me, and generally I read
code blocks before I evaluate them.
Best -- Eric
Footnotes:
[1] http://orgmode.org/manual/eval.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: evaluating all R code blocks (newbie question)
2011-01-20 15:04 evaluating all R code blocks (newbie question) Julian Burgos
2011-01-20 15:38 ` Lawrence Mitchell
@ 2011-01-21 0:20 ` Leo Alekseyev
1 sibling, 0 replies; 7+ messages in thread
From: Leo Alekseyev @ 2011-01-21 0:20 UTC (permalink / raw)
To: emacs-orgmode
Julian Burgos <jmburgos <at> uw.edu> writes:
>
> Dear list,
>
> Hopefully this is not too basic, nor has been answered before.
>
> I would like to know if there is away to have alll R code blocks in a
> document evaluated automatically (i.e. without query) when exporting
> to Latex. Now I have to answer "yes" multiple times to the question
> "Evaluate this R code block in your system" every time I do an export,
> which is somewhat annoying.
> Many thanks,
I don't have experience w/ LaTeX export, but try this to turn off the "evaluate
this block?" prompt: (setq org-confirm-babel-evaluate nil)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-01-21 0:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-20 15:04 evaluating all R code blocks (newbie question) Julian Burgos
2011-01-20 15:38 ` Lawrence Mitchell
2011-01-20 15:53 ` Julian Burgos
2011-01-20 16:00 ` Lawrence Mitchell
2011-01-20 16:19 ` Julian Burgos
2011-01-20 16:22 ` Eric Schulte
2011-01-21 0:20 ` Leo Alekseyev
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).