Emin Martinian <emin.martin...@gmail.com> writes: > I think there is a bug with the `:cache' header and how results of > evaluation are wrapped: Using `:cache yes' and wrapping the results > prevents later blocks using the cached results. > > To reproduce, start with an example like the one at the bottom of the > documentation in > <https://orgmode.org/manual/Evaluating-Code-Blocks.html>. Then add > something like `:wrap src R' (or `:results value drawer') to the header > of the block named `random' and the second block produces `nil' instead > of the desired result.
I tried to evaluate the following in various orders. #+NAME: random #+BEGIN_SRC R :cache yes :wrap src R runif(+1) #+END_SRC #+NAME: caller #+BEGIN_SRC emacs-lisp :var x=random :cache yes x #+END_SRC I am unable to see any issues with the latest development version of Org. You may try to update Org and check on your side. Canceled, for now. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>