From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ista Zahn Subject: org-babel caching question Date: Sat, 18 Sep 2010 16:17:33 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=57497 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ox06u-0004bG-FF for emacs-orgmode@gnu.org; Sat, 18 Sep 2010 12:17:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ox06t-0003sd-7q for emacs-orgmode@gnu.org; Sat, 18 Sep 2010 12:17:56 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:59480) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ox06t-0003sW-1L for emacs-orgmode@gnu.org; Sat, 18 Sep 2010 12:17:55 -0400 Received: by wwb24 with SMTP id 24so3847067wwb.30 for ; Sat, 18 Sep 2010 09:17:53 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode mailing list Hi all, I am just starting to get org-babel figured out, but I've run into an issue that I could use help with. Basically, with :cache yes turned on, subsequent code blocks to not pick up changes in earlier code blocks. I would like to know if there is a way to make org babel pick up these changes. An example follows. ---8<------------------begin example------------------8<--- Test org-babel caching mechanism * Instructions 1. Assign the value 1 to variable a in source block1. 2. Run org-babel-execute-buffer. 3. Change variable a by assigning it the value 2 in source block1. 4. Run org-babel-execute-buffer, and notice that a is still equal to 1, 2 in source block2, when it "should" be 2, 2. * Create R object "a" #+srcname block1 #+begin_src R :session R1 :cache yes a <- 1 #+end_src * Change the value of "a" #+srcname block2 #+begin_src R :session R1 :cache yes a <- c(a, 2) #+end_src * Commentary It appears that the org-babel caching mechanism does not notice that input values have changed. This is inconvenient, because if I make a mistake in an earlier code block I have to turn caching off in order to get the values to be updated in subsequent code blocks. Is there any way to make babel check to see if the input values have changed? ---8<------------------end example------------------8<--- -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org