Hello, Emmanuel Charpentier <emm.charpent...@free.fr> writes:
> But I stumble on a slight difficulty : I am unable to get org-mode to > cache results. > > Minimal (non-)working example : > > 1) Org source : > > #+author: > #+options: toc:nil > > > #+name: toto > #+BEGIN_SRC R :cache yes :eval no-expand > ## Simulate a (not too) long computation > Sys.sleep(3) > Sys.time() > #+END_SRC > > #+RESULTS[6b7eeb22cb3d78d2af82298b4aef0eda5043bcee]: toto > : 2018-09-30 08:01:23 > > #+name: titi > #+call: toto() :cache is per source block. CALL keyword generates a new source block, so it gets its own cache. So Org actually does cache results — try, e.g., to re-eval the first source block — in a very basic way, and you're mis-using the feature. HTH, -- Nicolas Goaziou