{"action":"created","issue":{"url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/9824","labels_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/9824/labels{/name}","comments_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/9824/comments","events_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/9824/events","html_url":"https://github.com/caskroom/homebrew-cask/issues/9824","id":59393863,"number":9824,"title":"R: incorrect installer downloaded for 10.7 and 10.8","user":{"login":"psibre","id":1278639,"avatar_url":"https://avatars.githubusercontent.com/u/1278639?v=3","gravatar_id":"","url":"https://api.github.com/users/psibre","html_url":"https://github.com/psibre","followers_url":"https://api.github.com/users/psibre/followers","following_url":"https://api.github.com/users/psibre/following{/other_user}","gists_url":"https://api.github.com/users/psibre/gists{/gist_id}","starred_url":"https://api.github.com/users/psibre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psibre/subscriptions","organizations_url":"https://api.github.com/users/psibre/orgs","repos_url":"https://api.github.com/users/psibre/repos","events_url":"https://api.github.com/users/psibre/events{/privacy}","received_events_url":"https://api.github.com/users/psibre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-01T12:18:01Z","updated_at":"2015-03-01T12:28:55Z","closed_at":null,"body":"Trying to install `r` fails on Mountain Lion (and presumably Lion as well):\r\n```\r\n$ brew cask install r\r\n==> Caveats\r\nCask r installs files under \"/usr/local\".  The presence of such\r\nfiles can cause warnings when running \"brew doctor\", which is considered\r\nto be a bug in homebrew-cask.\r\n\r\n==> Downloading http://cran.rstudio.com/bin/macosx/R-3.1.2-mavericks.pkg\r\n######################################################################## 100.0%\r\n==> Running installer for r; your password may be necessary.\r\n==> Package installers may write to any location; options such as --appdir are ignored.\r\nPassword:\r\n==> installer: Cannot install on volume / because it is disabled.\r\n==> installer: This build of R requires Mac OS X 10.9 or higher.\r\nError: Command failed to execute!\r\n\r\n==> Failed command:\r\n[\"/usr/bin/sudo\", \"-E\", \"--\", \"/usr/sbin/installer\", \"-pkg\", \"#<Pathname:/opt/homebrew-cask/Caskroom/r/3.1.2/R-3.1.2-mavericks.pkg>\", \"-target\", \"/\"]\r\n\r\n==> Output of failed command:\r\ninstaller: Cannot install on volume / because it is disabled.\r\ninstaller: This build of R requires Mac OS X 10.9 or higher.\r\n\r\n\r\n==> Exit status of failed command:\r\n#<Process::Status: pid 40742 exit 1>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/comments/76594717","html_url":"https://github.com/caskroom/homebrew-cask/issues/9824#issuecomment-76594717","issue_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/9824","id":76594717,"user":{"login":"psibre","id":1278639,"avatar_url":"https://avatars.githubusercontent.com/u/1278639?v=3","gravatar_id":"","url":"https://api.github.com/users/psibre","html_url":"https://github.com/psibre","followers_url":"https://api.github.com/users/psibre/followers","following_url":"https://api.github.com/users/psibre/following{/other_user}","gists_url":"https://api.github.com/users/psibre/gists{/gist_id}","starred_url":"https://api.github.com/users/psibre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psibre/subscriptions","organizations_url":"https://api.github.com/users/psibre/orgs","repos_url":"https://api.github.com/users/psibre/repos","events_url":"https://api.github.com/users/psibre/events{/privacy}","received_events_url":"https://api.github.com/users/psibre/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T12:28:55Z","updated_at":"2015-03-01T12:28:55Z","body":"The problem is the OSX version branch logic in the cask:\r\n```ruby\r\n  if MacOS.release <= :snow_leopard\r\n    sha256 'aec21b31b3a6c4e777690bd4e2f19fa71f2ae443dd645d4fa93a0399345e5aac'\r\n    # rstudio.com is the official download host per the vendor homepage\r\n    url \"http://cran.rstudio.com/bin/macosx/R-#{version}-snowleopard.pkg\"\r\n    pkg \"R-#{version}-snowleopard.pkg\"\r\n  else\r\n    sha256 'ea1312d3d888861f33f5225a159fe39a5e90f382996eadc388808eb59bf6003f'\r\n    # rstudio.com is the official download host per the vendor homepage\r\n    url \"http://cran.rstudio.com/bin/macosx/R-#{version}-mavericks.pkg\"\r\n    pkg \"R-#{version}-mavericks.pkg\"\r\n  end\r\n```\r\nFrom the homepage:\r\n> R-3.1.2-snowleopard.pkg R 3.1.2 binary for Mac OS X 10.6 (Snow Leopard) **and higher** [...]\r\n> R-3.1.2-mavericks.pkg R 3.1.2 binary for Mac OS X 10.9 (Mavericks) and higher [...]\r\n\r\n(emphasis mine)\r\n\r\nThis causes Lion and Mountain Lion to download the Mavericks package, whose installation fails."}}