This is from https://github.com/joshbode/homebrew-extra/edit/master/r-app.rb