2009-05-24 16:27:56 -04:00
|
|
|
#+TITLE: Litorgy
|
2009-05-13 23:28:17 -04:00
|
|
|
#+OPTIONS: toc:nil num:nil ^:nil
|
|
|
|
|
2009-05-24 16:27:56 -04:00
|
|
|
* litorgy
|
|
|
|
|
|
|
|
Litorgy enables *communication* between programming languages and
|
|
|
|
between people.
|
|
|
|
|
|
|
|
Litorgy provides:
|
|
|
|
- communication between programs :: Data passes seamlessly between
|
|
|
|
different programming languages, text, and tables.
|
|
|
|
- communication between people :: Data and calculations are embedded
|
|
|
|
in the same document as notes explanations and reports.
|
|
|
|
|
|
|
|
** communication between programs
|
|
|
|
|
|
|
|
*** interaction between languages (disk usage in your home directory)
|
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-22 10:03:30 -04:00
|
|
|
cd ~ && du -sc * |grep -v total
|
2009-05-13 23:28:17 -04:00
|
|
|
#+end_src
|
|
|
|
|
2009-05-22 19:32:41 -04:00
|
|
|
#+resname: directories
|
2009-05-22 10:03:30 -04:00
|
|
|
| 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 00:33:06 -04:00
|
|
|
|
2009-05-13 23:28:17 -04:00
|
|
|
#+srcname: directory-pie
|
2009-05-22 19:32:41 -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
|
|
|
|
2009-05-24 16:27:56 -04:00
|
|
|
*** operate on the contents of tables
|
|
|
|
*** be called from inside tables
|
|
|
|
|
2009-05-24 15:23:44 -04:00
|
|
|
|
2009-05-24 16:27:56 -04:00
|
|
|
** communication between people
|
2009-05-24 15:23:44 -04:00
|
|
|
|
2009-05-24 16:27:56 -04:00
|
|
|
*** calculation in/on tables (litorgies own tests)
|
|
|
|
litorgies own functional tests are contained in a large org-mode
|
|
|
|
table, allowing the test suite to be run be evaluation of the table
|
|
|
|
and the results to be collected in the same table.
|
2009-05-24 15:23:44 -04:00
|
|
|
|
2009-05-24 16:27:56 -04:00
|
|
|
*** interactive documentation (tutorial)
|
2009-05-24 15:23:44 -04:00
|
|
|
|
|
|
|
This would demonstrate applicability to Reproducible Research, and
|
|
|
|
Literate Programming.
|
|
|
|
|