使用Mac时,我无法在R中下载软件包。我尝试过简单的建议解决方案。请帮忙。
ERROR: compilation failed for package ‘lmtest’
* removing ‘/Users/Saundy/Library/R/3.4/library/lmtest’
Warning in install.packages :
installation of package ‘lmtest’ had non-zero exit status
下载的源包在
中‘/private/var/folders/b7/6zytq47j2k5d3knkv0zjtzbm0000gn/T/RtmpMY0uuf/downloaded_packages’
答案 0 :(得分:0)
R版本3.4.2(2017-09-28) 平台:x86_64-apple-darwin13.4.0(64位) 运行于:macOS High Sierra 10.13.1
Matrix产品:默认 BLAS:/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK:/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
区域设置: [1] en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8
附加基础包: [1] stats graphics grDevices utils数据集方法库
通过命名空间加载(而不是附加): [1] compiler_3.4.2 tools_3.4.2 yaml_2.1.14