M1 MAC更新R

在官网下载最新版本,按提示运行。

https://mirrors.tuna.tsinghua.edu.cn/CRAN/index.html

下载最新R后可直接安装,RSudio会自动连接最新R。
但是需要注意M1芯片适用的R版本。
为了正常使用,M1 MAC最好安装intel版本的R。

Note that you are using a version of R that was compiled for macOS-arm64, probably R-4.1.0-arm64.pkg from CRAN.
Please be aware that Bioconductor does not support the Apple M1 (a.k.a. arm64) architecture in native mode yet, only via Rosetta, which is the emulator built into macOS Big Sur that enables Mac M1 systems to run Intel x86_64 apps. Concretely this means that if you are on an Apple M1 system, we strongly recommend that you use the official Intel 64-bit R (x86_64 arch) from CRAN available here: https://cran.r-project.org/bin/macosx/ (choose R-4.1.0.pkg, NOT R-4.1.0-arm64.pkg). This will run on the Apple M1 platform in emulation mode.
The great benefit of doing this is that you will then be using something that we do support. In particular you'll be able to install Intel 64-bit Mac binary packages from CRAN and Bioconductor, including the Mac binary for Rhtslib which should install and work out-of-the-box without any compilation/linking/headache involved. Installing binary packages is also much faster.
https://support.bioconductor.org/p/9137290/

你可能感兴趣的:(M1 MAC更新R)