coatless-mac / r-macos-rtools

Scripts to build an **unofficial** Rtools-esq installer for the macOS R toolchain
171 stars 6 forks source link

The Latest Package Cannot Open #39

Closed obinnaonwuchekwa closed 1 year ago

obinnaonwuchekwa commented 4 years ago

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.

ammadrigal commented 4 years ago

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
coatless commented 4 years ago

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

ammadrigal commented 4 years ago

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

coatless commented 4 years ago

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/

mattwarkentin commented 4 years ago

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

paprika920 commented 3 years ago

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
pleiby commented 2 years ago

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

jmlee-de commented 2 years ago

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

hcwi commented 2 years ago

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 ...
> ...
hmcmonagle commented 2 years ago

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
mattysimonson commented 2 years ago

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

daaronr commented 2 years ago

Same message, also with Mac OS Monterrey 12.2.1

xorange commented 2 years ago

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 commented 2 years ago

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.

xorange commented 2 years ago

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

coatless commented 1 year ago

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.