added information about installing R packages
authorBenjamin Mako Hill <mako@atdot.cc>
Mon, 12 May 2014 15:25:19 +0000 (08:25 -0700)
committerBenjamin Mako Hill <mako@atdot.cc>
Mon, 12 May 2014 15:27:00 +0000 (08:27 -0700)
README

diff --git a/README b/README
index 5469db442a18b4adbb1adb92b69f84712905b326..4e1d81f10dec3bb47facbbf1fef70055b1a38a56 100644 (file)
--- a/README
+++ b/README
@@ -25,9 +25,27 @@ $ python count_gmail.py ~/incoming/mail/default > mail_metadata.tsv
 2. Parse the output using analysis.R
 --------------------------------------------------------------
 
 2. Parse the output using analysis.R
 --------------------------------------------------------------
 
-I run R interactively in Emacs/ESS but you might want to use RStudio
-if you are not familiar with Emacs. Alternatively, if you also output
-into mail_metadata.tsv, you can just run:
+If have not used R, you will to install R and three libraries I use in
+the script. 
+
+First, install R. In Debian and Ubuntu, the package is r-base. 
+
+You will then need to install three R libraries. The easiest way to do
+that is from within R. To start R, just invoke it from your shell:
+
+$ R
+
+Once R is running, you can install the packages by running these three
+commands from within the R interactive shell:
+
+> install.packages("data.table")
+> install.packages("ggplot2")
+> install.packages("reshape")
+
+Once youv'e done that, you can run the scripts.  I run R interactively
+in Emacs/ESS but you might want to use RStudio if you are not familiar
+with Emacs. Alternatively, if you also output into mail_metadata.tsv,
+you can just run:
 
 $ R --no-save < analysis.R
 
 
 $ R --no-save < analysis.R
 
@@ -35,4 +53,4 @@ It will create the two PDFs files of graphs for you in the local directory.
 
 The I converted the PDFs into PNGs with imagemagick's mogrify:
 
 
 The I converted the PDFs into PNGs with imagemagick's mogrify:
 
-$ mogrify -format png *pdf
\ No newline at end of file
+$ mogrify -format png *pdf

Benjamin Mako Hill || Want to submit a patch?