Posts Tagged ‘mac’

Using Growl with R

Posted in code on July 2nd, 2010 by Michael Ewens – Be the first to comment

If you have a long R script and would like to be notified when computation is complete, follow these directions to get Growl notifications:

  1. Install Growl and leave the disk image open.
  2. Open Terminal.
  3. Run “cd /Volumes/Growl-1.2/Extras/growlnotify”
  4. Run “./install.sh”

Then follow these directions to get your R script to talk to Growl by adding something like:
system(paste("growlnotify -a R -t \"R is done\" -m", "\"Inserted the data\"", sep=""))

Setting $PATH in Mac OS X

Posted in Uncategorized on June 21st, 2009 by Michael Ewens – Be the first to comment

The myriad of Google searches did not help me set a new PATH variable on my Mac. Here is how I did it:
1. cd to /etc
2. Edit the file ‘profile’
3. Append the path you want to the end of the /usr/local … line.