From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Emacs/ESS/org freezes/hangs on big data/ RAM(~256GB) processes when run in org/babel Date: Thu, 18 Jun 2015 11:45:10 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1747687288-1434653110=:474" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5eoP-0000xJ-4f for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 14:45:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5eoL-0000GH-2s for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 14:45:17 -0400 Received: from iport-acv2-out.ucsd.edu ([132.239.0.174]:11072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5eoK-0000G1-Mc for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 14:45:13 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Xebar Saram Cc: org mode This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1747687288-1434653110=:474 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Thu, 18 Jun 2015, Xebar Saram wrote: > Thx Chuck > > this sounds great. could you perhaps point us to some documentation on > this, or perhpas consider sharing a detailed overview of your workflow? > this seems it could really fit my needs. Start with Sections 1-3 of ox-ravel.org for basic info. There are a couple of examples on my github repo. Looking at the ravel-lang branch[1], there are these files: - example-1-Rnw.org :: contains an org mode translation of the “example-1.Rnw’ (Sweave) file from the R distribution and instructions on how to export it. - knitr-minimal-rhtml.org :: contains the “knitr-minimal.Rhtml’ file from the knitr demos page, but modified to *.org format. - demos.org :: contains a variety of examples. It is best viewed online using 'raw' (or by downloading and viewing it in Org mode), as github formatting masks the #+BEGIN_EXAMPLE ... #+END_EXAMPLE sections that show what the output should be. As far as caching goes this file (named cache.org, say) --8<---------------cut here---------------start------------->8--- * cache this chunk #+ATTR_RAVEL: cache=TRUE #+NAME: show-time #+BEGIN_SRC R firstTime <- date() firstTime #+END_SRC --8<---------------cut here---------------end--------------->8--- when exported as ravel-latex (i.e. C-c C-e r l, if you have ox-ravel up and running, see section 2 of ox-ravel.org) creates cache.Rnw with one chunk for which caching is specified. Loading knitr and running knit("cache.Rnw") in R produces cache.tex and 3 ./cache/show-time* files. Rerunning cache.Rnw will not update those files even if cache.Rnw is updated as long as the code in the show-time block is unchanged. You can start a fresh session, run knit("cache.Rnw"), and the value of firstTime will be loaded into it. HTH, Chuck [1] https://github.com/chasberry/orgmode-accessories/tree/ravel-lang --0-1747687288-1434653110=:474--