繁体   English   中英

如何在 macOS Sierra 10.12.6 上安装 package “fansi”?

[英]How to install package "fansi" on macOS Sierra 10.12.6?

我是该地区的新手。 我的 R 版本是 4.1.2 (2021-11-01) -- “鸟嬉皮”。

我正在尝试在 R 中打开 excel 工作表,为此我需要安装“devtools”和“readxl”,但由于缺少“fansi”而无法安装。 所以我尝试安装“fansi”,只有这个出现:

> install.packages("fansi")

  There is a binary version available but the source version is
  later:
      binary source needs_compilation
fansi  0.5.0  1.0.0              TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
installing the source package ‘fansi’

trying URL 'https://cran.rstudio.com/src/contrib/fansi_1.0.0.tar.gz'
Content type 'application/x-gzip' length 479090 bytes (467 KB)
==================================================
downloaded 467 KB

Warning in file(con, "r") :
  cannot open file '/var/db/timezone/zoneinfo/+VERSION': No such file or directory
dyld: lazy symbol binding failed: Symbol not found: _utimensat
  Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
  Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _utimensat
  Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
  Expected in: /usr/lib/libSystem.B.dylib

/Library/Frameworks/R.framework/Resources/bin/INSTALL: line 34: 11010 Done                    echo 'tools:::.install_packages()'
     11011 Abort trap: 6           | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --no-echo --args ${args}
Warning in install.packages :
  installation of package ‘fansi’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/s6/nnnfw0tn08z070cthrfzw5680000gn/T/RtmpSCY1XB/downloaded_packages’

感谢任何帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM