litorgy.org 1.5 KB

Examples of Litorgy in Action

interaction between languages (disk usage in your home directory)

This will work for Linux and Mac users, not so sure about shell commands for windows users.

To run place the cursor on the #+begin_src line of the source block labeled directory-pie and press \C-c\C-c.

cd ~ && du -sc * |grep -v total
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"
pie(dirs[,1], labels = dirs[,2])

calculations on tables (grades in a table)

names grade 1 grade 2 grade 3 Total Letter grade
student 01 91.80 96.40 97.00 95.07 C
student 02 88.78 89.15 98.00 91.98 B
student 03 92.00 95.14 97.00 94.71 B
student 04 84.00 74.62 88.00 82.21 B

Use R to plot distributions…

interactive documentation (tutorial)

This would demonstrate applicability to Reproducible Research, and Literate Programming.