I posted a question over on Stack Overflow describing an issue with compiling both Rcpp and TMB and passing CRAN checks.
I can compile both TMB and Rcpp code into two DLLs using a makevars file, but results in a CRAN check error about foreign function calls.
Compiling into a single DLL (mypackage.dll) results in:
Error in .Call("getParameterOrder", data, parameters, new.env(), PACKAGE = DLL) :
"getParameterOrder" not available for .Call() for package "mypackage"
using TMB::MakeADFun(..., DLL="mypackage", checkParameterOrder=FALSE) results in:
Error in .Call("TMBconfig", e, as.integer(1), PACKAGE = DLL) :
"TMBconfig" not available for .Call() for package "mypackage"
Probably something simple I'm missing, but would appreciate any advice.
I posted a question over on Stack Overflow describing an issue with compiling both Rcpp and TMB and passing CRAN checks.
I can compile both TMB and Rcpp code into two DLLs using a makevars file, but results in a CRAN check error about foreign function calls.
Compiling into a single DLL (mypackage.dll) results in:
using
TMB::MakeADFun(..., DLL="mypackage", checkParameterOrder=FALSE)results in:Probably something simple I'm missing, but would appreciate any advice.