Files
homebrew-cask/Casks/r/rstudio.rb

38 lines
1.0 KiB
Ruby

cask "rstudio" do
version "2023.09.1,494"
sha256 "25a2cc51206e96c56ce593813c66aa3a17f93a3426ef9847866a54014eb1a6cd"
url "https://download1.rstudio.org/electron/macos/RStudio-#{version.csv.first}-#{version.csv.second}.dmg",
verified: "download1.rstudio.org/electron/macos/"
name "RStudio"
desc "Data science software focusing on R and Python"
homepage "https://posit.co/products/open-source/rstudio/"
livecheck do
url "https://posit.co/download/rstudio-desktop/"
strategy :page_match do |page|
match = page.match(/RStudio-(\d+(?:\.\d+)+)-(\d+)\.dmg/i)
next if match.blank?
"#{match[1]},#{match[2]}"
end
end
conflicts_with cask: "homebrew/cask-versions/rstudio-daily"
depends_on macos: ">= :high_sierra"
app "RStudio.app"
zap trash: "~/.rstudio-desktop"
caveats <<~EOS
#{token} depends on R. The R Project provides official binaries:
brew install --cask r
Alternatively, the Homebrew-compiled version of R omits the GUI app:
brew install r
EOS
end