From s.boehringer at lumc.nl  Wed Sep  3 18:41:51 2014
From: s.boehringer at lumc.nl (Stefan Boehringer)
Date: Wed, 3 Sep 2014 18:41:51 +0200
Subject: [Rd] Rcpp and dot in package name
Message-ID: <540744CF.6010909@lumc.nl>

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



[Rd] Rcpp and dot in package name
Stefan Boehringer