[Rd] Rcpp and dot in package name
Stefan Boehringer
s.boehringer at lumc.nl
Wed Sep 3 18:41:51 CEST 2014
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
--
http://s-boehringer.org
More information about the R-devel
mailing list