[Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load
Dirk Eddelbuettel
edd at debian.org
Thu Aug 23 14:07:27 CEST 2012
Florian,
On 23 August 2012 at 12:45, Florian Oswald wrote:
| Davor,
| I'm at a loss for words. I get this error consistently ONLY when trying to
| install Rcpp.package.skeleton. I tried many times, always removed .o and so.
| files. I did not come across this problem with any other package before, also
| ones which are using Rcpp. I can install a similarly simple package that Jelmer
| Ypma kindly put together for me to try out (attached). It differs from
| Rcpp.package.skeleton in that it only defines a single class that contains all
| functions. I guess that shouldn't matter, but apart from that I can find few
| differences.
I may have asked this before, but what R version so you use?
Can you run the unit tests involving modules and packages? Eg
$ cd ~/svn/rcpp/pkg/Rcpp/inst/unitTests/ ## adjust for your sources
$ RunAllRcppTests="yes" Rscript -e 'library(inline);library(RUnit); \
cppfunction <- function(...) cxxfunction(..., plugin="Rcpp"); \
runTestFile("runit.Module.client.package.R")'
(where the code line was wrapped. Here, this works as expected and ends in
[...]
* DONE (testRcppClass)
Loading required package: testRcppClass
Loading required package: Rcpp
done successfully.
Number of test functions: 1
Number of errors: 0
Number of failures: 0
edd at max:~/svn/rcpp/pkg/Rcpp/inst/unitTests$
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list