38 lines
1.0 KiB
Ruby
38 lines
1.0 KiB
Ruby
cask "rstudio" do
|
|
version "2021.09.1,372"
|
|
sha256 "daec6a4034ca93d562e4c4103eb7f764a1005fe4d774ec2ad13e547a51d8d942"
|
|
|
|
url "https://rstudio-desktop.s3.amazonaws.com/desktop/macos/RStudio-#{version.before_comma}-#{version.after_comma}.dmg",
|
|
verified: "rstudio-desktop.s3.amazonaws.com/"
|
|
name "RStudio"
|
|
desc "Data science software focusing on R and Python"
|
|
homepage "https://www.rstudio.com/"
|
|
|
|
livecheck do
|
|
url "https://www.rstudio.com/products/rstudio/download/"
|
|
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-preview"
|
|
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
|