Closed bedwards-mango closed 2 years ago
Note: The error occurs for any model only when est="saem"
Hi @bedwards-mango,
It could be considered either a bug or a setup issue, I know that doesn't help.
In the saem
the key error message is:
error: call of overloaded ‘isnan(double&)’ is ambiguous
If you edit the source headers to call std::isnan()
everywhere in the .hpp
files inside ~/opt/user/R/3.6.3/lib/R/library/nlmixr//include/saem_class_rcpp.hpp
instead of isnan()
it should work just fine.
However, this is also related to setup. Some versions of the c++
compilers do not need this convention to run (you are just lucky enough to have one that does :roll_eyes: :smile: ).
This was taken care of in other versions of nlmixr, though. In fact compiling saem
models is no longer done for the most recent nlmixr
, so if you can load nlmixr
you don't need to worry about this.
Hopefully this was helpful.
Minimal reprex:
Error thrown:
R Version: 3.6.3 nlmixr version: 1.1.1-5
This error does not occur with R 4.0.4 and nlmixr 2.0.4, however upgrading is not an option.
Is this a bug, or setup issue?