cask "rstudio" do version "2024.09.1,394" sha256 "f1aac1c83640b95948cb8da21de55c45153a0784aa29e6f638cce15435d740a5" 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 Alternatively, the Homebrew-compiled version of R omits the GUI app: brew install r EOS end