[Rcpp-commits] r3052 - in pkg/Rcpp: . inst inst/skeleton

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Jun 9 19:20:54 CEST 2011


Author: edd
Date: 2011-06-09 19:20:54 +0200 (Thu, 09 Jun 2011)
New Revision: 3052

Modified:
   pkg/Rcpp/ChangeLog
   pkg/Rcpp/inst/NEWS
   pkg/Rcpp/inst/skeleton/zzz.R
Log:
make R CMD check a little quieter for Rcpp.package.skeleton() when modules
are used


Modified: pkg/Rcpp/ChangeLog
===================================================================
--- pkg/Rcpp/ChangeLog	2011-06-07 13:45:51 UTC (rev 3051)
+++ pkg/Rcpp/ChangeLog	2011-06-09 17:20:54 UTC (rev 3052)
@@ -1,3 +1,8 @@
+2011-06-09  Dirk Eddelbuettel  <edd at debian.org>
+
+	* inst/skeleton/zzz.R (.onLoad): Force load of methods package before
+	calling loadRcppModules() to make 'R CMD check' happier
+
 2011-06-06  Romain Francois  <romain at r-enthusiasts.com>
 
 	* inst/include/Rcpp/vector/Vector.h : init becomes protected to fix the bug 

Modified: pkg/Rcpp/inst/NEWS
===================================================================
--- pkg/Rcpp/inst/NEWS	2011-06-07 13:45:51 UTC (rev 3051)
+++ pkg/Rcpp/inst/NEWS	2011-06-09 17:20:54 UTC (rev 3052)
@@ -12,6 +12,9 @@
     o   loadRcppModules() gains a "direct" argument to expose the module instead
         of exposing what is inside it
 
+    o   Suppress a spurious warning from R CMD check on packages created with
+        Rcpp.package.skeleton(..., module=TRUE)
+
 0.9.4   2011-04-12
 
     o   New R function "loadRcppModules" to load Rcpp modules automatically

Modified: pkg/Rcpp/inst/skeleton/zzz.R
===================================================================
--- pkg/Rcpp/inst/skeleton/zzz.R	2011-06-07 13:45:51 UTC (rev 3051)
+++ pkg/Rcpp/inst/skeleton/zzz.R	2011-06-09 17:20:54 UTC (rev 3052)
@@ -1,5 +1,6 @@
 
 .onLoad <- function(pkgname, libname){
+    require("methods", character=TRUE, quietly=TRUE)
     loadRcppModules()
 }
 



More information about the Rcpp-commits mailing list