问题与RStudio在MacOS塞拉利昂10.12.6
问题描述:
我尝试使用以下指令rJava软件包安装到Rstudio编译rJava:问题与RStudio在MacOS塞拉利昂10.12.6
然而,当我运行此命令:
unset JAVA_HOME R --quiet -e 'install.packages("rJava", type="source", repos="http://cran.us.r-project.org")'
我收到此错误:
clang: error: unsupported option '-fopenmp'
任何变通办法或sugge stions?
答
看看这里。许多取决于R版本。这可能是你需要重新编译rJava
R 3.4, rJava, macOS and even more mess ;)
R, Java, rJava and macOS adventures
你需要编译器支持OpenMP - 因此,你需要使用不同版本的铿锵比较你所得到的开箱即用。