[Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

Florian Oswald florian.oswald at gmail.com
Wed Aug 15 14:07:56 CEST 2012

I am having trouble with setting up a package that uses modules. I did


and changed nothing in the source code. In the console I did

R CMD INSTALL mypack --no-multiarch

it compiles fine it seems, but it cannot load the package. I get the
following error:

installing to /Library/Frameworks/R.framework/Versions/2.15/Resources/library/mypack/libs/x86_64
** R
** preparing package for lazy loading
** help
Warning: /Users/florianoswald/mypack/man/mypack-package.Rd:31: All
text must be in a section
Warning: /Users/florianoswald/mypack/man/mypack-package.Rd:32: All
text must be in a section
*** installing help indices
** building package indices
** testing if installed package can be loaded
R(5237) malloc: *** error for object 0x7fff74f8e860: pointer being
freed was not allocated
*** set a breakpoint in malloc_error_break to debug
sh: line 1:  5237 Abort trap: 6
'/Library/Frameworks/R.framework/Resources/bin/R' --no-save --slave <
ERROR: loading failed

Here's my sessionInfo

R version 2.15.1 (2012-06-22)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] RcppExamples_0.1.4 RcppClassic_0.9.1  Rcpp_0.9.13

loaded via a namespace (and not attached):
[1] tools_2.15.1


More information about the Rcpp-devel mailing list