2 arch arm: "arm64", intel: "x86_64"
3 folder = on_arch_conditional arm: "big-sur-arm64/"
4 arch_legacy = on_arch_conditional arm: "-arm64"
8 sha256 "f2b771e94915af0fe0a6f042bc7a04ebc84fb80cb01aad5b7b0341c4636336dd"
10 url "https://cloud.r-project.org/bin/macosx/R-#{version}.pkg"
16 pkg "R-#{version}.pkg"
20 sha256 arm: "e61f25b529940e229b69c19e01428505d7f59cc1e1209ed41dca39452b56fb98",
21 intel: "dd96e8dcae20cf3c9cde429dd29f252b87af69028a6a403ec867eb92bb8eb659"
23 url "https://cloud.r-project.org/bin/macosx/#{folder}base/R-#{version}#{arch_legacy}.pkg"
29 pkg "R-#{version}#{arch_legacy}.pkg"
33 sha256 arm: "e61f25b529940e229b69c19e01428505d7f59cc1e1209ed41dca39452b56fb98",
34 intel: "dd96e8dcae20cf3c9cde429dd29f252b87af69028a6a403ec867eb92bb8eb659"
36 url "https://cloud.r-project.org/bin/macosx/#{folder}base/R-#{version}#{arch_legacy}.pkg"
42 pkg "R-#{version}#{arch_legacy}.pkg"
46 sha256 arm: "e61f25b529940e229b69c19e01428505d7f59cc1e1209ed41dca39452b56fb98",
47 intel: "dd96e8dcae20cf3c9cde429dd29f252b87af69028a6a403ec867eb92bb8eb659"
49 url "https://cloud.r-project.org/bin/macosx/#{folder}base/R-#{version}#{arch_legacy}.pkg"
55 pkg "R-#{version}#{arch_legacy}.pkg"
57 on_big_sur :or_newer do
59 sha256 arm: "0c2c6cc57b1976746cf3f0937a1764120648fd4cac0be53cc9bf99d215a5f213",
60 intel: "d7704eaab96f00612af6eb588911bc1e536d93b8d47ac44b519d7520fd58d573"
62 url "https://cloud.r-project.org/bin/macosx/big-sur-#{arch}/base/R-#{version}-#{arch}.pkg"
65 url "https://cloud.r-project.org/bin/macosx/"
66 regex(/href=.*?R[._-]v?(\d+(?:\.\d+)*)([._-]#{arch})?\.pkg/i)
69 pkg "R-#{version}-#{arch}.pkg"
73 desc "Environment for statistical computing and graphics"
74 homepage "https://www.r-project.org/"
76 depends_on macos: ">= :el_capitan"
87 zap delete: "/Library/Frameworks/R.Framework",
94 "~/Library/Caches/org.R-project.R",