Question

I am trying to build a user package that has been building fine on my colleague's windows box which has R 2.15.1 installed. My config is:

R 2.15.3, RTools 3.0, Rcpp 0.10.4, RcppArmadillo 0.3.920.1, RStudio 0.97.551

This is the first compilation instance when I run "R CMD INSTALL mypackage". indfunForecast.cpp is one of the source files within the package.

>g++ -m32 -I"D:/PROGRA~1/R/R-215~1.3/include" -DNDEBUG
-I"D:/R/win-library/2.15/Rcpp/include" -I"D:/R/win-library/2.15/RcppArmadillo/include" 
-I"d:/RCompile/CRANpkg/extralibs64/local/include" 
-O2 -Wall -mtune=core2 
-c indfunForecast.cpp -o indfunForecast.o

The error messages that follow are:

In file included from D:/R/win-library/2.15/RcppArmadillo/include/RcppArmadillo.h:30:0,
             from indfunForecast.cpp:16:
D:/R/win-library/2.15/RcppArmadillo/include/RcppArmadilloForward.h:99:33: 
error: 'ConstReferenceInputParameter' is not a template
D:/R/win-library/2.15/RcppArmadillo/include/RcppArmadilloForward.h:100:33: 
error: 'ReferenceInputParameter' is not a template
D:/R/win-library/2.15/RcppArmadillo/include/RcppArmadilloForward.h:101:33: 
error: 'ConstInputParameter' is not a template

Any idea what's going on???

Appreciate your help. Sachko

Was it helpful?

Solution

You have the newest RcppArmadillo which needs the newest Rcpp, which you don't have (and I won't bore you with the details, but it is CRAN-related).

Install Rcpp 0.10.5 from source, and things should work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top