如何让库 DescTools 在 R 上与 ARM Mac M1 一起工作

时间:2021-07-12 15:24:33

标签: r arm desctools

我在带有 ARM 的 Mac 上运行 R,配置如下:

R version 4.1.0 (2021-05-18)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Big Sur 11.4

尝试加载库 DescTools 时出现以下错误:

> install.packages('DescTools', dependencies = TRUE)
trying URL 'https://cran.rstudio.com/bin/macosx/big-sur-arm64/contrib/4.1/DescTools_0.99.42.tgz'
Content type 'application/x-gzip' length 6049366 bytes (5.8 MB)
==================================================
downloaded 5.8 MB


The downloaded binary packages are in
    /var/folders/4q/q405mpt54ss0hp_4r3c5wx680000gn/T//RtmpCBnNNg/downloaded_packages
> library(DescTools)
Error: package or namespace load failed for ‘DescTools’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘rootSolve’
> 

这是终端吗,我应该在英特尔下恢复到 R,还是有一些修复?

0 个答案:

没有答案