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
|
|
|
|
#+begin_src bash :results :replace
|
2009-05-14 10:12:23 -04:00
|
|
|
du -sc * |grep -v total
|
2009-05-13 23:28:17 -04:00
|
|
|
#+end_src
|
|
|
|
|
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-13 23:28:17 -04:00
|
|
|
pie(as.vector(t(dirs[1])), labels = as.vector(t(dirs[2])))
|
|
|
|
#+end_src
|