InsightRX/PKPDsim

Rcpp issue?

Opened this issue · 0 comments

Hi Ron, I just installed the InsightRx/PKPDsim on a new macbook and I'm having issues with Rcpp when i try the new_ode_model() function. I am getting several errors like:

filecab22cab112.cpp:226:14: error: use of overloaded operator '=' is ambiguous (with operand types 'std::vector<double>' and 'Rcpp::Vector<19, PreserveStorage>::NameProxy' (aka 'generic_name_proxy<19, PreserveStorage>'))
  cov_FEMALE = design["cov_FEMALE"];
  ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:574:13: note: candidate function
    vector& operator=(vector&& __x)

I have run the code on an older macbook/older PKPsim version and everything works fine. When I installed PKPDsim, I updated all packages (Rccp version 1.0.3) but I have also tried older Rcpp versions with no luck.

I've found this previous post which seems to be describing the same issue. Do you think there a similar problem with the compiler version? Please advise on how to fix. Thanks! #1