r-macos-rtools icon indicating copy to clipboard operation
r-macos-rtools copied to clipboard

The Latest Package Cannot Open

Open obinnaonwuchekwa opened this issue 5 years ago • 15 comments

My MAC tells me it cannot open the package as it is unable to scan it for malicious software. It says the package needs to be updated.

obinnaonwuchekwa avatar May 28 '20 14:05 obinnaonwuchekwa

Hello, I just ran into the same issue. I am in MACOS Catalina. Any ideas? I am trying to install a package from GitHub using either devtools or remote within R Studio. I hadn't tried that after I upgraded to Catalina some weeks ago. Before I didn't have any problems.

I read that the solution was to use your package and I'm really hoping to use it. Here the screen: There is no "Open / Cancel" option, just the "OK"

Screenshot 2020-06-11 at 19 50 41

ammadrigal avatar Jun 12 '20 00:06 ammadrigal

Right click, select open from the context menu, and then you should be able to install.

coatless avatar Jun 12 '20 00:06 coatless

Thanks! I'll try a bit later today. Just confirming, this is not R-version dependent, correct? Im in R 3.5.3, thinking in going soon to 4, but haven't upgraded R yet. Will this identify my R version and correct accordingly? Or do I need to upgrade R to 4, before I use this tool?

Thanks very much for your fast replies:)

Ana Maria

ammadrigal avatar Jun 12 '20 13:06 ammadrigal

The latest version is keyed to R 4.0.0. Due to how frequently R changes the toolchain and the different kind of macOS operating systems, it's easier to freeze a version at each version. If you're just getting into compiled code, you probably want to use R 4.0.0.

This installer mainly attempts to automate:

https://thecoatlessprofessor.com/programming/cpp/r-compiler-tools-for-rcpp-on-macos/

coatless avatar Jun 12 '20 13:06 coatless

If you hold the control button on your keyboard when left-clicking the .pkg installer, it should let you proceed with the toolchain installer.

mattwarkentin avatar Sep 16 '20 15:09 mattwarkentin

Hi, I got it opened! But the installation failed. I am on macOS Big Sur 11.0.1. I took a screen shot:

Screen Shot 2020-11-27 at 11 12 46 AM

paprika920 avatar Nov 27 '20 03:11 paprika920

Now a year later, Exactly same failure behavior as "paprika920 commented on Nov 26, 2020". macos-rtools-4.0.0.pkg fails with the above msg "The Installation Failed." R version 4.1.1. Mac OS Big Sur 11.5.2

Can we install toolchain needed for rstan in Mac OS Big Sur? Thx

pleiby avatar Dec 13 '21 23:12 pleiby

Same issue: installer macos-rtools-4.0.0.pkg fails with MacOS Monteray 12.0.1 (as of Feb 2022) Correction planned? Workaround?

jmlee-de avatar Feb 06 '22 08:02 jmlee-de

The same issue here with MacOS Monterey 12.1.

> ...
> package_script_service[30806]: ./postinstall: [init] Downloading the appropriate gfortran package ...
> package_script_service[30806]: ./postinstall: [error] Bad version supplied ...
> ...

hcwi avatar Mar 11 '22 16:03 hcwi

Looks like I'm joining the club of "The Installation Failed." I have R version 4.1.1, Mac OS Big Sur 11.4. Me error message looks like the one from @paprika920. I'll keep looking for workarounds and report back if I find something!

edit: I updated to Monterey 12.0.1 an am still receiving the same error message. Screen Shot 2022-04-11 at 4 49 42 PM

hmcmonagle avatar Apr 11 '22 20:04 hmcmonagle

Same "The installation failed" message here with Mac OS Monterrey 12.2.1

mattysimonson avatar May 16 '22 18:05 mattysimonson

Same message, also with Mac OS Monterrey 12.2.1

daaronr avatar Aug 05 '22 22:08 daaronr

Same on Monterrey 12.5, with release 4.0.0

Also I'm suggesting using the 👍ThumbUp icon (in Top-Right button in each comment) to report on the same issue, so that every one in thread would not get a notification spam each time a similar response came up.

xorange avatar Sep 07 '22 03:09 xorange

After a quick scan, It seemed that the macos pkg only contains a shell script.

git clone this repo and run sh scripts/postinstall should have the same effect as installing the pkg.

My Environment:

Same on Monterrey 12.5, with release 4.0.0

reported that gfortran version is not found, therefore the failure.

I think for whomever failed to install, just goto gfortran-for-macOS's release page and find one suitable for you Mac, and You(We) are good to go.

Update:

I've succeeded with cmdstanr::install_cmdstan() in R Studio, which calls clang to compile some cpp file. So I'm guessing (new to R, all I could do now is guessing) "C++ toolchain in R" is just xcode environment. And my environment is good to go.

  • hint: If you could build C++ with CMake on your Mac, you're probably good to go
  • hint: Download a proper gfortran-for-macOS's release
  • Feel free to correct me if I'm wrong. And DO correct me if so.

xorange avatar Sep 07 '22 03:09 xorange

Referring to: https://thecoatlessprofessor.com/programming/cpp/r-compiler-tools-for-rcpp-on-macos/

I'm gaining confidence that my instructions are correct.

If you have no idea for what "toolchain", "CMake", "environment" means, just follow these steps:

Open the Terminal from /Applications/Utilities/ Type the following into Terminal

xcode-select --install Press “Install”

Verify installation by typing into terminal: gcc --version

xorange avatar Sep 07 '22 07:09 xorange

This installer has been superceded by the {macrtools} R package, which automatically installs and configures the R toolchain for compiled code on macOS.

Please do not use this installer package as it is notably out of date.

coatless avatar Feb 24 '23 20:02 coatless