From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: [babel] Trouble with :cache yes Date: Tue, 22 Mar 2011 10:29:15 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=37799 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q23WO-0004B2-Pk for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 11:29:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q23WK-0006aX-Ea for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 11:29:24 -0400 Received: from mailout2-tlr.thomson.com ([163.231.12.69]:11770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q23WK-0006Zi-AB for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 11:29:20 -0400 Received: from mailout2-tlr.thomson.com (localhost.localdomain [127.0.0.1]) by mailout2-tlr.thomson.com (Switch-3.3.2/Switch-3.3.2) with ESMTP id p2MFTH5G007836 for ; Tue, 22 Mar 2011 15:29:17 GMT Received: from TLRUSMNEAGHUB01.ERF.THOMSON.COM (TLRUSMNEAGHUB01.erf.thomson.com [163.231.22.181]) by mailout2-tlr.thomson.com (Switch-3.3.2/Switch-3.3.2) with ESMTP id p2MFTGBG007829 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Tue, 22 Mar 2011 15:29:17 GMT Content-Language: en-US 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@gnu.org Hi, I'm having some trouble getting ":cache yes" to behave the way I think it's supposed to. As a test, I have a simple example containing just a title and one source block: #+source: testcache #+begin_src R :cache yes :exports both :results output dat <- matrix(runif(12), 3, 4) print(dat) #+end_src If I export this document to HTML (C-c C-e b), Emacs asks me "Evaluate this R code block (testcache) on your system?" If I say 'y' it re-evaluates, if I say 'n' it doesn't, so it doesn't seem like there's any role that caching gets to play here. In addition, when I export the document as above, the results are not saved in the original org-mode buffer, so whatever "#+results" block is there (or not there) from doing C-c C-c is neither used nor overwritten - and therefore the exported document contains different results than the source document. The behavior I expected (please let me know if my expectation is incorrect) was for the result of the computation to be cached in the Emacs buffer when I do the first export, and for that saved result to be included in the exported content for subsequent exports, until either the code/inputs change or I delete the results block. My configuration is: Emacs : GNU Emacs 23.2.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2010-08-18 on braeburn.aquamacs.org - Aquamacs Distribution 2.1 Package: Org-mode version 7.5 Thanks! -- Ken Williams Senior Research Scientist Thomson Reuters http://labs.thomsonreuters.com