macrtools: Install the R Compilation Toolchain for macOS

  Рет қаралды 1,714

TheCoatlessProfessor

TheCoatlessProfessor

Күн бұрын

*This is an unofficial project to support users on macOS and has no connection with the R project’s macOS CRAN maintainers.*
---
Video Timeline
00:00 Video Bumper
00:05 Intro
00:15 Installing the {macrtools} R package using {remotes} from GitHub
00:43 Installing the R Compilation Toolchain using {macrtools}
01:02 Running `macrtools::macos_rtools_install()`
01:14 Installing Xcode CLI using in a headless configuration (Slow installation)
01:35 Installing the appropriate gfortran binary for R based on Intel (x86_64) or M1/M2 (arm64/aarch64) hardware type
01:52 Installing the "r-base-dev" binaries from the recipes project
02:10 Checking to see if the toolchain was installed
02:17 Outroll
---
Links:
- {macrtools} on GitHub: github.com/rmacoslib/macrtools
- {macrtools} pkgdown website with manual install instructions: mac.thecoatlessprofessor.com/...
- R Mac Developers' Tool page describing requirements: mac.r-project.org/tools/
- R Mac Development Binaries from the {recipes} system: mac.r-project.org/bin/
- {recipes} system: github.com/R-macos/recipes
---
Socials
👨‍💻 github.com/coatless
🐘 mastodon.social/@coatless
🦋 bsky.app/profile/coatless.bsk...
🕸️ thecoatlessprofessor.com
📋 / jamesbalamuta
🕊️ / axiomsofxyz

Пікірлер: 12
@shiloli9611
@shiloli9611 5 ай бұрын
Totally works! Thanks you very much. Using arm64 Ventura 13.6.
@thecoatlessprofessor7674
@thecoatlessprofessor7674 5 ай бұрын
Good to hear
@tracyradsvick3450
@tracyradsvick3450 Жыл бұрын
Thank you for this. For some reason, I am having trouble with Xcode command line tools. I've even downloaded it straight from apple's developer page. I've tried numerous times and I get FALSE for the install. Gfortran is no problem. Any ideas what could be the problem here?
@thecoatlessprofessor7674
@thecoatlessprofessor7674 Жыл бұрын
Could you provide more context? When you type in R: sessionInfo() What does it say?
@emmales693
@emmales693 Ай бұрын
After entering the command 'macrtools::macos_rtools_install()' I am receiving the following error "Timeout of 60 seconds was reached". This is related to the download of gfortran. Any suggestions?
@thecoatlessprofessor7674
@thecoatlessprofessor7674 15 күн бұрын
I think this was an issue that was resolved over on the project's GitHub page: github.com/coatless-mac/macrtools/issues/16 The short rundown: there was either an internet connection hiccup or CRAN's servers briefly were updated during the time the installer tried to download gfortran.
@user-nr2jr1xm1r
@user-nr2jr1xm1r 7 ай бұрын
Thanks for doing this for us. But I am having trouble with installing gfortran. When I used the code "macrtools::gfortran_install()", It shows "R version Error in cat("R version", getRversion(), "is not supported. Please upgrade. ") : argument 2 (type 'list') cannot be handled by 'cat'". BTW my R version is R4.3.1
@thecoatlessprofessor7674
@thecoatlessprofessor7674 7 ай бұрын
Ewk! That's not good. In the future, if you could add the issue directly in the project's bug tracker it could be resolved quicker. github.com/coatless-mac/macrtools/issues That said, I think the issue with `gfortran` was the version of macOS was newer than the version supported by the R package, e.g. macOS Sonoma (14.0.0). Could you try updating to the latest version of the package with: ``` install.packages("remotes") remotes::install_github("coatless-mac/macrtools") macrtools::macos_rtools_install() ```
@caterinacevallos9822
@caterinacevallos9822 Жыл бұрын
I have the following error: Unable to install gfortran for arm64/aarch64... Official R support for arm64/aarch64 began in R 4.1 ... Please upgrade R ... But I'm using R.4.3.0...
@thecoatlessprofessor7674
@thecoatlessprofessor7674 Жыл бұрын
Thanks for the comment. We fixed this about a week back thanks to a bug report on GitHub: github.com/coatless-mac/macrtools/issues/9 So, everything _should_ work for R 4.1 - 4.3 for arm64.
@caterinacevallos9822
@caterinacevallos9822 Жыл бұрын
@@thecoatlessprofessor7674 Well unfortunately it didn't :/ I had to install it another way.
@thecoatlessprofessor7674
@thecoatlessprofessor7674 Жыл бұрын
@@caterinacevallos9822 That's odd. Definitely feel free to share you configuration and open an issue ticket on the repository. But, from other testers, the latest version of the package solved the issue on ARM64 systems.
How to Install R and RStudio on Mac / MacOS (2024)
9:51
ProgrammingKnowledge
Рет қаралды 20 М.
🤔Какой Орган самый длинный ? #shorts
00:42
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 117 МЛН
Positron IDE doing Data Analysis with R (Public Beta)
32:44
TheCoatlessProfessor
Рет қаралды 2,6 М.
Positron IDE with Editor Color Themes (Public Beta)
4:44
TheCoatlessProfessor
Рет қаралды 1,3 М.
Downloading and Installing Homebrew on macOS
6:07
TheCoatlessProfessor
Рет қаралды 570
How to Install Packages in R Studio and Handling Installation Errors
5:07
Becoming a Data Scientist
Рет қаралды 89 М.
How I Got Good at Coding Interviews
6:29
NeetCode
Рет қаралды 1,6 МЛН
Separate and Unite - manipulate your data with R programming
5:26
R Programming 101
Рет қаралды 10 М.
iOS 18 Hands-On: Top 5 Features!
12:47
Marques Brownlee
Рет қаралды 1,2 МЛН
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 1,7 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 51 МЛН
Clicks чехол-клавиатура для iPhone ⌨️
0:59