kaskr / adcomp

AD computation with Template Model Builder (TMB)
Other
177 stars 80 forks source link

Eigen/Dense in CRAN vs install_windows.R #230

Closed daliakopoulos closed 4 years ago

daliakopoulos commented 7 years ago

Hello,

When installing through CRAN all seems to work but then I get a

"fatal error: Eigen/Dense: No such file or directory"

in TMB.hpp when trying to install other packages that require TMB (e.g. cavios/tshydro). When I install from source using install_windows.R (after updating the RTools vs RBuildTools problem) tsHydro works fine.

Cheers, YD

kaskr commented 7 years ago

The error Eigen/Dense: No such file or directory with the CRAN install indicates that the package RcppEigen is missing on your system.

daliakopoulos commented 7 years ago

Hello, RcppEigen is there, something else must be wrong

kaskr commented 7 years ago

What output do you get from: system.file("include", package = "RcppEigen") ?

daliakopoulos commented 7 years ago

C:/[...]/R/win-library/3.4/RcppEigen/include

kaskr commented 7 years ago

In that case the problem is with the tshydro package (DESCRIPTION file). See https://github.com/kaskr/adcomp/wiki/Development under 'Distributing code'.