-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add native support for Apple's ARM chips (arm64, M1) to RStudio for macOS #8652
Comments
Now that there's a stable R 4.1-devel binary for Apple Silicon, is there anything people can do to be helpful in moving this issue forward? (If I might suggest, more important than making a universal binary, is making an Apple Silicon binary that is capable of loading either an x86_64 or osx_arm64 R library. I don't think people would be bothered by the effort of choosing the frontend appropriate to their architecture when they download. A greater concern is whether I will still be able to use RStudio with both the most current R, and older R versions that are x86 that I used to build older code.) |
RStudio depends on gdb. Without an M1 port of gdb, compilation is a no-go. (Correct me if I'm wrong.) |
RStudio could help tide us over if you made available linux aarch64 debian packages that could be included in a docker... I've built this: https://github.com/elbamos/rstudio-m1 but an aarch64 debian package would make for a much better build. |
Using this issue to track native M1 support for the whole RStudio IDE, not just running RSessions. Sessions with native M1 version of R will be supported in 1.4-Juliet-Rose. |
I am beginning to think that my purchase of M1 Mac mini was a mistake. I can not run anything! R and Rstudio and all other free softwares that run over R.... I am not a programmer, I am just an user and love Mac for being user-friendly. |
The daily builds of RStudio support arm64 builds of R: https://dailies.rstudio.com |
@gtamayo59 There is also a stable version of R 4.0.3 available via miniforge (or just conda-forge channel) which is native for M1/arm64 macs and will work with daily builds of RStudio linked above:
EDIT: you can actually install via homebrew too,
|
For a non-verse programmer nor unix user, it seems complicated. Any recipe direction will be great! A wiki document (kind of "for dummies" will be appreciated! I tried following your directions (OK, I got it, I need to install first R. But this (https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#g_t_0060Apple-Silicon_0027) it is impossible for me, to deduct what I need to do first. Download the Xquartz, downloaded the Darwin.20-arm64.tar, which in turn downloaded R and from there, I went nowhere. |
@gtamayo59 you should be able to download the R 4.2.0 beta installer (R-devel 4.2.0 Under development, r80216) from this link: https://mac.r-project.org/#nightly Keep in mind though it's an unstable build...I believe once R 4.1.0 is released it will include aarch64 binaries as well, but for some reason the R 4.1.0 nightlies don't include it, so maybe it got pushed to 4.2.0
|
@gtamayo59 if you want to use latest stable version of R (4.0.5, 2021-03-31, Shake and Throw) here is a small guide which is basically what I ended up doing:
|
@mshamash, great! One quick question: do I have to make a daily re-build of RStudio? |
@gtamayo59 You shouldn't have to per se, but there will be new daily builds available at the rstudio dailies link, every day. These kinds of builds are usually bleeding-edge so may have some bugs, but I think the next version of RStudio (v1.4 juliet rose) which should be released end-April/early-May will have support for ARM RSessions by default, so once that's out you can just switch to that version of RStudio instead of daily builds. Hope that was clear enough! And hope my instructions worked out! |
@mshamash, checking on the R.version, I see the report: It seems that I download a wrong version of R or RStudio, as the platform was not recognized |
@gtamayo59 Looks like you have the Intel version of R installed, maybe in addition to the ARM version, but RStudio is only choosing one to work with. It should still work fine with all your packages though (in theory), since macOS' Rosetta translation layer is really great, but if you want to continue setting up the native ARM version only, then feel free to reach out to me by email (on my GitHub profile I have my personal webpage link, email at the bottom) - just so we don't keep alerting everyone in this thread. |
Hi all, |
@astamm , sessions can now be run natively on an M1 processor as part of our build, as of Juliet Rose which was released in May 2021. Give that the IDE itself works well using apple's translation layer, we don't expect to release the rest of the IDE in native mode for awhile, late 2022 at the earliest. |
Thanks @mikebessuille . I was indeed talking about the IDE itself. I was trying to avoid as much as possible having to resort to Rosetta2 because I feel like it's a pity having M1 processors and not fully taking advantage of them, but, given the timeline you are announcing, I might fall back to it for the time being. Thanks anyway for the quick follow-up. |
The vast majority of performance gain you will see from an M1 chip is when running R code, and the R session is already native on the M1, so additional performance improvements by making the IDE itself native will be relatively small in comparison. |
We will use this issue to track confirming that all components other than the IDE itself are M1 native. For the IDE itself (the desktop app and the rsession), that's tracked in: #10116. |
Any progress on this? |
The latest releases of RStudio support arm64 builds of R. Work is ongoing to produce arm64-native builds of RStudio. |
This has technically been implemented, but I guess we'll want to wait until we start publishing preview builds of RStudio with Electron until we officially consider it closed? |
From a user POV, that would seem like a logical approach 👍 |
@kevinushey I think this should be in Test, since the work is done to create the build. |
Closing, we've been producing universal Mac builds of RStudio Electron for months now. They aren't prominently linked yet, but people have been finding them. |
Can you provide some advice for finding them? @gtritchie |
They are still very much a work in progress. Not all features are implemented, and very little formal testing has yet been done. With those caveats and dire warnings: https://dailies.rstudio.com/rstudio/spotted-wakerobin/electron/macos/ |
Runs great so far! New icon looks yucky like a Microsoft icon. |
The new icon isn't specific to Electron. See #8395 for more on that saga. |
RStudio has apparently been producing universal builds "for months now", though it's not mentioned in their release notes. rstudio/rstudio#8652 (comment) https://www.rstudio.com/products/rstudio/download/
R and RStudio work today on the M1 chip, albeit with compromised performance, via Rosetta2, an emulation layer. This issue tracks the work needed to add native support for Apple's new ARM-based silicon to RStudio.
Other useful links
The text was updated successfully, but these errors were encountered: