Skip to content

Compiling both TMB and Rcpp in distributed package and CRAN checks #247

@AdrianHordyk

Description

@AdrianHordyk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions