Skip to content

Rcpp and dot in package name

2 messages · Stefan Boehringer, Dirk Eddelbuettel

#
I have run across a problem with Rcpp and trying to create a package
with a name containing a dot ('.') using Rcpp.package.skeleton. I get
the following error

RcppExports.cpp:10:25: error: expected initializer before '.' token
 RcppExport SEXP genetics.haplotype_rcpp_hello_world() {

implying that Rcpp literally uses the package name in internal function
name generation. Unfortunately, if I use an underscore ('_') instead, I get
Error : Invalid DESCRIPTION file

Malformed package name

See the information on DESCRIPTION files in section 'Creating R
packages' of the 'Writing R Extensions' manual.

Is there a workaround known?

Thanks in advance,

    Stefan
#
Stefan,

R-devel is the wrong list. Please subscribe to rcpp-devel and ask there. 

Short tip: Don't use a dot in the name. 

See the 260+ packages depending on Rcpp listed at the bottom of eg
http://cran.rstudio.com/web/packages/Rcpp/index.html -- I essentially see no
dot there.

Regards,  Dirk