安装";PMR";来自Github的R包
我正在尝试使用以下命令使用MacOSX安装一个R软件包:安装";PMR";来自Github的R包,r,github,installation,R,Github,Installation,我正在尝试使用以下命令使用MacOSX安装一个R软件包: install_github("yuanzhongshang/PMR") 但有一个错误: Downloading GitHub repo yuanzhongshang/PMR@HEAD ✓ checking for file ─ preparing ‘PMR’: ✓ checking DESCRIPTION meta-information ... ─ cleaning src ─ installing
install_github("yuanzhongshang/PMR")
但有一个错误:
Downloading GitHub repo yuanzhongshang/PMR@HEAD
✓ checking for file
─ preparing ‘PMR’:
✓ checking DESCRIPTION meta-information ...
─ cleaning src
─ installing the package to process help pages
-----------------------------------
─ installing *source* package ‘PMR’ ...
** using staged installation
** libs
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fopenmp -fPIC -Wall -g -O2 -Wall -pedantic -fdiagnostics-color=always -c EstimateVC_1.cpp -o EstimateVC_1.o
clang: error: unsupported option '-fopenmp'
make: *** [EstimateVC_1.o] Error 1
ERROR: compilation failed for package ‘PMR’
─ removing
如何解决此问题?该软件包可能没有在mac上测试过,因此默认的mac工具无法工作。请参阅本指南,以正确设置您的系统,从源代码处编译R包:谢谢您的评论。很抱歉,我试图遵循这一点,但错误不会消失。我还尝试安装了不同版本的clang和gfortran,但PMR也不起作用。