2009-05-13 23:28:17 -04:00
|
|
|
#+TITLE: Examples of Litorgy in Action
|
|
|
|
#+OPTIONS: toc:nil num:nil ^:nil
|
|
|
|
|
2009-05-14 10:12:23 -04:00
|
|
|
* size of the rorg repository
|
2009-05-13 23:28:17 -04:00
|
|
|
|
2009-05-14 10:12:23 -04:00
|
|
|
This will work for Linux and Mac users, not so sure about shell
|
|
|
|
commands for windows users.
|
2009-05-13 23:28:17 -04:00
|
|
|
|
|
|
|
To run place the cursor on the =#+begin_src= line of the source block
|
|
|
|
labeled directory-pie and press =\C-c\C-c=.
|
|
|
|
|
|
|
|
#+srcname: directories
|
2009-05-15 00:33:06 -04:00
|
|
|
#+begin_src bash :results replace
|
2009-05-17 20:42:04 -04:00
|
|
|
du -sc * |grep -v total | head -n 1
|
2009-05-13 23:28:17 -04:00
|
|
|
#+end_src
|
|
|
|
|
2009-05-17 20:42:04 -04:00
|
|
|
| 4 | "block" |
|
2009-05-15 00:33:06 -04:00
|
|
|
|
2009-05-14 10:12:23 -04:00
|
|
|
[Eric] I sometimes get weird results here, where R will import the
|
|
|
|
labels into the third column instead of the second. I don't entirely
|
|
|
|
trust the R table importing mechanisms so far.
|
2009-05-13 23:28:17 -04:00
|
|
|
|
|
|
|
#+srcname: directory-pie
|
2009-05-14 10:12:23 -04:00
|
|
|
#+begin_src R :var dirs = directories
|
2009-05-15 00:33:06 -04:00
|
|
|
pie(dirs[,1], labels = dirs[,2])
|
2009-05-13 23:28:17 -04:00
|
|
|
#+end_src
|
2009-05-15 00:33:06 -04:00
|
|
|
|