2009-05-14 03:28:17 +00:00
|
|
|
#+TITLE: Examples of Litorgy in Action
|
|
|
|
#+OPTIONS: toc:nil num:nil ^:nil
|
|
|
|
|
2009-05-14 14:12:23 +00:00
|
|
|
* size of the rorg repository
|
2009-05-14 03:28:17 +00:00
|
|
|
|
2009-05-14 14:12:23 +00:00
|
|
|
This will work for Linux and Mac users, not so sure about shell
|
|
|
|
commands for windows users.
|
2009-05-14 03:28:17 +00: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 04:33:06 +00:00
|
|
|
#+begin_src bash :results replace
|
2009-05-22 14:03:30 +00:00
|
|
|
cd ~ && du -sc * |grep -v total
|
2009-05-14 03:28:17 +00:00
|
|
|
#+end_src
|
|
|
|
|
2009-05-22 14:03:30 +00:00
|
|
|
#+resname: directory-results
|
|
|
|
| 64 | "Desktop" |
|
|
|
|
| 11882808 | "Documents" |
|
|
|
|
| 8210024 | "Downloads" |
|
|
|
|
| 879800 | "Library" |
|
|
|
|
| 57344 | "Movies" |
|
|
|
|
| 7590248 | "Music" |
|
|
|
|
| 5307664 | "Pictures" |
|
|
|
|
| 0 | "Public" |
|
|
|
|
| 152 | "Sites" |
|
|
|
|
| 8 | "System" |
|
|
|
|
| 56 | "bin" |
|
|
|
|
| 3274848 | "mail" |
|
|
|
|
| 5282032 | "src" |
|
|
|
|
| 1264 | "tools" |
|
2009-05-15 04:33:06 +00:00
|
|
|
|
2009-05-14 14:12:23 +00: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-14 03:28:17 +00:00
|
|
|
|
|
|
|
#+srcname: directory-pie
|
2009-05-22 14:03:30 +00:00
|
|
|
#+begin_src R :var dirs = directory-results
|
2009-05-15 04:33:06 +00:00
|
|
|
pie(dirs[,1], labels = dirs[,2])
|
2009-05-14 03:28:17 +00:00
|
|
|
#+end_src
|
2009-05-15 04:33:06 +00:00
|
|
|
|