[Rd] Rcpp and dot in package name

2014-09-03 Thread Stefan Boehringer
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

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Rcpp modules

2013-09-16 Thread Stefan Boehringer
Dear all,

my apologies for posting here instead of rcpp-devel (registration for
which did not seem to work). I try to use a Rcpp module outside a
package using the following code which should work according to posts on
this list/rcpp-devel.

library('Rcpp');
dlr = dyn.load('build/libtestlib.so');
mod = Module('testclass', PACKAGE = dlr);
cl = new(mod$testclass);

This results in the error message:
Failed to initialize module pointer: Error in
FUN("_rcpp_module_boot_testclass"[[1L]], ...): no such symbol
_rcpp_module_boot_testclass in package
/home/pingu/src/2013-rcpp-test/rcpptest/build/libtestlib.so

Passing the PACKAGE argument above reportedly should solve this error
but does not seem to do so in my setup. Any suggestion appreciated. The
mentioned symbol exists in the shared object file which is linked agains
libR and libRcpp. Both a build with R CMD SHLIB and/or standard cmake
gives the same result.

Environment:
Linux
R 3.0.1
Rcpp_0.10.4
Freshly compiled from source.

Thanks in advance,

Stefan

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] R-package preparation --as-cran behaving unexpectedly

2013-04-03 Thread Stefan Boehringer

Dear all,

I am trying to submit an R-package to CRAN. In preparation I do run

R_INSTALL_TAR=/bin/tar R CMD check --as-cran parallelize.dynamic_0.9.tar.gz

and the command finishes without warnings or errors. As a final output I get

NOTE: There was 1 note.
See
‘.../Rpackages/parallelize.dynamic/parallelize.dynamic.Rcheck/00check.log’
for details.

The file contains the standard output of the 'R CMD check ...' call 
precisely. If I submit this very tarball to CRAN I get rejected with 
warnings as reported from '--as-cran' checks there. In my case they are 
valid warnings about assignments in .GlobalEnv which I can certainly 
fix. However, my concern is about the discrepancy between the outputs of 
'R CMD check --as-cran' runs locally as compared to the run on the 
CRAN-site.


Any help is appreciated. I am running


R version 2.15.2 (2012-10-26) -- "Trick or Treat"
Platform: x86_64-unknown-linux-gnu (64-bit)

Thanks in advance,

Stefan

--
http://visigen.lumc.nl/emgm
http://s-boehringer.org

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel