将 R 更新到 3.4.1 后 sourceCpp 不起作用 [英] sourceCpp does not work after updating R to 3.4.1
问题描述
我刚刚将 R 从 3.3.1 更新到 3.4.1.现在我不能使用插件 sourceCpp() 来获取 C++ 代码.尝试获取函数 rcppfunc 时出现错误:
clang: 错误:不支持的选项-fopenmp"make: *** [rcppfunc.o] 错误 1
在更新之前一切正常.
有没有其他人在 3.4.1 中遇到过类似的 C++ 编译器问题?
请参阅以下帖子,解释如何通过启用 OpenMP 编译来解决 -fomp
错误:
http://thecoatlessprofessor.com/programming/openmp-in-r-on-os-x/
特别是,您可以在此处获取我制作的二进制安装程序:
https://uofi.box.com/v/r-macos-clang-pkg
这是基于此处提供的预编译的 clang4 二进制文件:
http://r.research.att.com/libs/>
I've just updated R from 3.3.1 to 3.4.1. Now I can't use the plugin sourceCpp() to source C++-code. When trying to source the function rcppfunc I get the error:
clang: error: unsupported option '-fopenmp' make: *** [rcppfunc.o] Error 1
Before updating everything worked as it should.
Has anyone else had similar C++-compiler issues with 3.4.1?
See the following post explaining how to resolve the -fomp
error by enabling OpenMP compilations:
http://thecoatlessprofessor.com/programming/openmp-in-r-on-os-x/
In particular, you can obtain the binary installer I made here:
https://uofi.box.com/v/r-macos-clang-pkg
This is based off of the pre-compiled clang4 binary available here:
http://r.research.att.com/libs/
这篇关于将 R 更新到 3.4.1 后 sourceCpp 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!