emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] [Announcement] Org-babel initial release


From: Eric Schulte
Subject: Re: [Orgmode] [Announcement] Org-babel initial release
Date: Tue, 15 Sep 2009 09:10:29 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (darwin)

Hi Miguel,

It seems I spoke too soon, It looks like the current version of
Org-babel will support dynamic clock tables if they are structured as
the following with a #+tblname: line preceding the block.

--8<---------------cut here---------------start------------->8---
#+TBLNAME: todays-clock
#+BEGIN: clocktable :maxlevel 2 :block today :scope tree1 :link t
Clock summary at [2009-09-15 Tue 08:51], for Tuesday, September 15, 2009.

| L | Headline     | Time   |      |
|---+--------------+--------+------|
|   | *Total time* | *1:10* |      |
|---+--------------+--------+------|
| 1 | top          | 1:10   |      |
| 2 | show all     |        | 1:00 |
| 2 | later        |        | 0:10 |
#+END: clocktable

#+begin_src emacs-lisp :var data=todays-clock
(length (car data))
#+end_src

#+resname:
: 4

#+begin_src emacs-lisp :var data=todays-clock
(length data)
#+end_src

#+resname:
: 4
--8<---------------cut here---------------end--------------->8---

Unfortunately I don't know much about R, so converting the times to
something easily graphed in a pie chart may be a little bit more
difficult.

Best -- Eric




reply via email to

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