cask :v1 => 'rstudio' do
  version '0.99.484'
  sha256 '5a7a9fc8559a653d38402aadbd7c1a8c726dfdf193ed5394c29fbfa9a4608b2b'

  # rstudio.org is the official download host per the vendor homepage
  url "http://download1.rstudio.org/RStudio-#{version}.dmg"
  name 'RStudio'
  homepage 'http://www.rstudio.com/'
  license :affero

  app 'RStudio.app'

  zap :delete => '~/.rstudio-desktop'
end

cask :v1 => 'rstudio' do
  version '0.99.485'
  sha256 '2125e01171b814f709c9c06d5baea4e7e895e7ae926657cdcc618de869e98413'

  # rstudio.org is the official download host per the vendor homepage
  url "http://download1.rstudio.org/RStudio-#{version}.dmg"
  name 'RStudio'
  homepage 'http://www.rstudio.com/'
  license :affero

  app 'RStudio.app'

  zap :delete => '~/.rstudio-desktop'
end

Upgrade RStudio to 0.99.485: fix Safari 9 bug
Upgrade RStudio to 0.99.485: fix Safari 9 bug

There's a bug introduced with the change to Safari 9 and/or
El Capitan where RStudio crashes when changing project.

For reference, the specific issue is rstudio/rstudio#505.
