Skip to content

[Rcpp-devel] package .onLoad multiple modules

6 messages · Baptiste Auguie, Davor Cubranic, Dirk Eddelbuettel

#
On 31 May 2011 23:19, <romain at r-enthusiasts.com> wrote:
Fantastic, thanks a lot.

baptiste
22 days later
#
Hi,

I have a couple of follow-up questions re: this old thread:

- could we expect a CRAN release of Rcpp soon? (I am relying on this
new argument to loadRcppModules(), which means that my package would
currently fail on CRAN, and even on r-forge (I'm not sure how to
specify Rcpp >= 0.9.4.2 as import).

- R/zzz.r in my package now reads,

  cda <- new( "Module" )
  cd <- new( "Module" )
  linear <- new( "Module" )
  array <- new( "Module" )

 .onLoad <- function(pkgname, libname){
     loadRcppModules(direct=FALSE)
 }

which is much cleaner than before; however, R CMD check still complains
WARNING Undocumented code objects:
  array cd linear
All user-level objects in a package should have documentation entries.

Can I hide them, or is there a documentation format for Modules?

Thanks, and best regards,

baptiste

PS: full package is at
https://r-forge.r-project.org/scm/viewvc.php/pkg/cda/?root=photonics

sessionInfo()
R version 2.13.0 (2011-04-13)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_NZ.UTF-8/en_NZ.UTF-8/C/C/en_NZ.UTF-8/en_NZ.UTF-8

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

other attached packages:
[1] cda_1.0              statmod_1.4.10       RcppArmadillo_0.2.23
Rcpp_0.9.4.2         ggplot2_0.8.9        proto_0.3-9.2
[7] reshape_0.8.4        plyr_1.5.2
On 1 June 2011 15:43, baptiste auguie <baptiste.auguie at googlemail.com> wrote:
#
Oops, please ignore the second request; it is documented in Rcpp-modules.

Thanks,

baptiste
On 24 June 2011 15:16, baptiste auguie <baptiste.auguie at googlemail.com> wrote:
#
On June 23, 2011 08:16:59 PM baptiste auguie wrote:
Version dependencies can be specified in the package's DESCRIPTION file. I have 
this in one of my packages: 
	Depends: Rcpp (>= 0.8.6), RcppArmadillo (>= 0.2.6)

Davor
#
On 24 June 2011 at 10:16, Davor Cubranic wrote:
| On June 23, 2011 08:16:59 PM baptiste auguie wrote:
| > - could we expect a CRAN release of Rcpp soon? (I am relying on this
| > new argument to loadRcppModules(), which means that my package would
| > currently fail on CRAN, and even on r-forge (I'm not sure how to
| > specify Rcpp >= 0.9.4.2 as import).
| 
| Version dependencies can be specified in the package's DESCRIPTION file. I have 
| this in one of my packages: 
| 	Depends: Rcpp (>= 0.8.6), RcppArmadillo (>= 0.2.6)

Yes, sure, but only 'a.b.c.' versions get to CRAN, and R-Forge in all its
wisdom does not use development versions packages hosted there.  So all it
knows is 0.9.4.

It may be two or three more weeks til a new Rcpp release.

Dirk
#
Hi,

Thanks, and indeed, given the choice r-forge always opts for CRAN
versions of packages, which is quite annoying. I removed Rcpp from
DESCRIPTION/Depends when I added it as an import(Rcpp) in NAMESPACE.
I'm not sure if both are needed/compatible.

Thanks also for the news re: the next Rcpp release, looking forward to that.

Best regards,

baptiste
On 25 June 2011 05:45, Dirk Eddelbuettel <edd at debian.org> wrote: