cask "rstudio" do version "2025.05.1,513" sha256 "76e1538b94762b5bc01ce4918496764a50b2e6017cfb7a63dd5debd191491621" 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/" regex(/RStudio[._-]v?(\d+(?:\.\d+)+)[._-](\d+)\.dmg/i) strategy :page_match do |page, regex| match = page.match(regex) next if match.blank? "#{match[1]},#{match[2]}" end end conflicts_with cask: "rstudio@daily" depends_on macos: ">= :monterey" app "RStudio.app" zap trash: "~/.rstudio-desktop" caveats <<~EOS #{token} depends on R. The R Project provides official binaries: brew install --cask r-app Alternatively, the Homebrew-compiled version of R omits the GUI app: brew install r EOS end