Skip to content

Instantly share code, notes, and snippets.

@aforsythe
Created March 23, 2020 22:58
Show Gist options
  • Save aforsythe/3cddfdb12bf5d8f5a0b577431e4ca87a to your computer and use it in GitHub Desktop.
Save aforsythe/3cddfdb12bf5d8f5a0b577431e4ca87a to your computer and use it in GitHub Desktop.
cask 'r' do
version '3.6.1'
sha256 'd86ab88eb33ddecf1c9432e08d177b40d0e1b07bb31e07d33c18d70e13b5051b'
url "https://cloud.r-project.org/bin/macosx/R-#{version}.pkg"
appcast 'https://cloud.r-project.org/bin/macosx/'
name 'r'
homepage 'https://www.r-project.org/'
depends_on macos: '>= :el_capitan'
pkg "R-#{version}.pkg"
uninstall pkgutil: 'org.r-project*',
delete: [
'/Library/Frameworks/R.Framework',
'/usr/bin/R',
'/usr/bin/Rscript',
]
zap trash: [
'~/.R',
'~/.Rapp.history',
'~/.RData',
'~/.Rhistory',
'~/.Rprofile',
'~/Library/R',
'~/Library/Caches/org.R-project.R',
]
caveats do
files_in_usr_local
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment