R package with C/C++ and openMP: how to make “Makevars” file under “mypackage/src/” folder?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am developing an R package on Mac OSX with some low level C/C++ code and openMP support. The C++ code is written using Rcpp package. My global ''Makevars'' file is placed under ~/.R/ folder. The file looks like following. CC=clang-omp CXX=clang-omp++ PKG_CFLAGS=Wall -pedantic PKG_CFLAGS= -fopenmp PKG_CXXFLAGS= -fopenmp PKG_LIBS= -fopenmp -lgomp Everything works great under this configuration! However, now I want to build package-specific Makevars file for its own compilation to make the package portable. What I tried was simply move the