emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] cleaning all the #+results from an org document


From: Eric Schulte
Subject: Re: [O] cleaning all the #+results from an org document
Date: Thu, 28 Jul 2011 17:04:57 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Ista Zahn <address@hidden> writes:

> On Thu, Jul 28, 2011 at 8:59 AM, Stephen Eglen
> <address@hidden> wrote:
>> Thanks Torsten, you've expressed it elegantly!
>>>
>>> a) send it to someone without the results (to let him create his own)
>>> b) archive them without having possible huge amount of lines of
>>> results which can be reproduced any time by executing the block again.
>>> c) to delete all the old results and start "fresh"
>
> +1 for c. I often work with R objects that are simply too large to
> store in org tables, so I use babel caching + session + write / load R
> data files from disk. This works, but it becomes easy to get to an
> inconsistent state, and I would like to be able to delete the results
> blocks and run the whole thing fresh.
>

You could try evaluating the following with "M-x :" in an Org-mode
buffer.  If this works well then I'll give it its own function name and
key shortcut (key combo suggestions welcome).

#+begin_src emacs-lisp
  (org-babel-map-src-blocks nil (org-babel-remove-result))
#+end_src

Thank -- Eric

>
> Best,
> Ista
>
>>
>> I was mostly thinking about b (for putting into version control) and c,
>> for giving to students to try out.
>>
>> Stephen
>>
>>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]