[Rcpp-devel] Rcpp, bigmemory, package creation
Dirk Eddelbuettel
edd at debian.org
Thu Apr 11 00:13:10 CEST 2013
Alex,
On 10 April 2013 at 15:50, Alex Ustian wrote:
| Sorry for this double post, I am now correctly subscribed to the list!
No double post. If you're not subscribed, it just goes to some electronic bin...
| I'm having an issue building a package (named bigExplore) in RStudio which uses
| both Rcpp and the MatrixAccessor from bigmemory. All of my functions seem to
| work fine when I was interactively developing them via sourceCpp.
[...]
Your email, while long, does not contain a self-contained reproducible
example so nobody can really help you.
I would recommend that you simplify you setup by creating a smaller package
with maybe just Rcpp and bigmemory and a single function. Once that works,
pivot back and fix your main package.
| ==> Rcmd.exe INSTALL --no-multiarch bigExplore
|
| * installing to library 'C:/Users/Alex/Documents/R/win-library/2.15'
| * installing *source* package 'bigExplore' ...
| ** libs
| g++ -m64 -I"C:/PROGRA~1/R/R-215~1.3/include" -DNDEBUG -I"C:/Users/Alex/Documents/R/win-library/2.15/bigmemory/include" -I"C:/Users/Alex/Documents/R/win-library/2.15/Rcpp/include" -I"C:/Users/Alex/Documents/R/win-library/2.15/RcppArmadillo/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -mtune=core2 -c RcppExports.cpp -o RcppExports.o
| RcppExports.cpp:10:29: error: 'BigMatrix' was not declared in this scope
| RcppExports.cpp:10:38: error: template argument 1 is invalid
| RcppExports.cpp:10:38: error: template argument 2 is invalid
| RcppExports.cpp:10:55: error: 'BigMatrix' was not declared in this scope
Maybe your namespace declarations are wrong or missing. Without your code we
cannot tell.
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list