Rcpp and default C++ compiler

后端 未结 2 433
一向
一向 2021-01-02 01:26

I have some strange troubles with Rcpp - it uses unpredictable C++ compiler. This question is somewhat similar to this question.
I\'m on OSX, I have 2 complilers - defau

2条回答
  •  一生所求
    2021-01-02 01:47

    Thanks, to @Dirk hint, I finaly got an answer. Hope, this will save a little bit of time for somebody. Following two lines in ~/.R/Makevars solved my problem:

    CXX1X=clang-omp++
    

    See details in this Writing R Extensions section.

提交回复
热议问题