emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Xebar Saram <zeltakc@gmail.com>
Cc: org mode <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <alpine.OSX.2.11.1506181110070.474@charles-berrys-macbook.local> (raw)
In-Reply-To: <CAOQHXPqZQis0bYn3G2R=HHEaWs1eH-_fccNTGtX5NPjR+vfkvg@mail.gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1906 bytes --]

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

  reply	other threads:[~2015-06-18 18:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-17 19:09 Emacs/ESS/org freezes/hangs on big data/ RAM(~256GB) processes when run in org/babel Xebar Saram
2015-06-17 19:19 ` William Denton
2015-06-18  3:17   ` Charles C. Berry
2015-06-18 11:39     ` Xebar Saram
2015-06-18 18:45       ` Charles C. Berry [this message]
2015-06-18 12:34     ` Rainer M Krug
2015-06-18 20:20       ` Charles C. Berry
2015-06-18 21:20         ` Andreas Leha
2015-06-19 22:13           ` Charles C. Berry
2015-06-19 22:25             ` Andreas Leha
2015-06-19 22:31       ` Andreas Leha
2015-06-20 15:05         ` Rainer M Krug
2015-06-20 21:20           ` Andreas Leha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.OSX.2.11.1506181110070.474@charles-berrys-macbook.local \
    --to=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=zeltakc@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).