Trying to install the Package anomaly_4.0.0 on Red Hat Enterprise Linux Server release 7.2 (Maipo) using the command:
sudo R CMD INSTALL /home/.../anomaly_4.0.0.tar.gz
(R Version is 3.6.0 (2019-04-26) -- "Planting of a Tree")
I received the following error message: C++14 standard requested but CXX14 is not defined
After a little research I tried the solution provided here:
After creating the Makevars file as described I run into the following error:
marshalling.cpp:192:90: Fehler: Parameter als »auto« deklariert
transform(cpts.begin(),cpts.end(),xstar.begin(),marshalled_result.begin(),[](auto& cpt,auto& x)
^
marshalling.cpp:192:100: Fehler: Parameter als »auto« deklariert
transform(cpts.begin(),cpts.end(),xstar.begin(),marshalled_result.begin(),[](auto& cpt,auto& x)
^
marshalling.cpp: In Lambda-Funktion:
marshalling.cpp:195:36: Fehler: »cpt« wurde in diesem Gültigkeitsbereich nicht definiert
entry[0] = (double)std::get<0>(cpt);
^
marshalling.cpp:197:16: Fehler: »x« wurde in diesem Gültigkeitsbereich nicht definiert
entry[2] = x;
^
I can’t find a solution to solve this error. Did anyone knows how to crack this? I am grateful for any advice.