On Fri, 21 Aug 2015, Ista Zahn wrote:
On Fri, Aug 21, 2015 at 11:04 AM, Nicolas Goaziou
<m...@nicolasgoaziou.fr> wrote:
Ista Zahn <istaz...@gmail.com> writes:
I agree that it is safer. In my case its safer like a 10 MPH speed
limit. Safe yes, but too slow!
Doesn't Babel :cache property help here?
It does actually, to my surprise. I have not been using :cache because
the documentation says
"Note that the :cache header argument will not attempt to cache
results when the :session header argument is used"
and since I almost always use :session I didn't expect this to work.
To my surprise it does (at least with R source blocks, I haven't
tested yet with others). Can I now rely on this to work even with
:session?
AFAICS, (reading `org-babel-exp-do-export') if you do not
use `:results silent' it will work.
Where this does not work is when `:results silent' is used.
This does not execute a second time:
#+BEGIN_SRC R :results output :session :cache yes
date()
#+END_SRC
but changing to `:results silent' will run without updating the cached
RESULTS (if any) every time.
HTH,
Chuck