According to the Rcpp FAQ (2.15. What about the new ‘no-linking’ feature), since Rcpp version 0.11.0 we can avoid specifying LAPACK/BLAS/Fortran in a Makevars file, and in fact avoid a Makevars entirely if we follow these instructions.
... only two things are required:
• an entry in DESCRIPTION such as Imports: Rcpp (which
may be versioned as in Imports: Rcpp (>= 0.11.0)), and
• an entry in NAMESPACE to ensure Rcpp is correctly instantiated,
for example importFrom(Rcpp, evalCpp).
But instead of adding an Imports
line for Rcpp, would a LinkingTo
also work? That is, can I use:
LinkingTo: Rcpp (>= 0.11.0)
instead of:
Imports: Rcpp (>= 0.11.0)
Or are both needed?