[Rcpp-commits] r3636 - pkg/Rcpp/inst/skeleton

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Jun 21 16:20:12 CEST 2012


Author: edd
Date: 2012-06-21 16:20:12 +0200 (Thu, 21 Jun 2012)
New Revision: 3636

Modified:
   pkg/Rcpp/inst/skeleton/zzz.R
Log:
more explicit comments on what now works with R 2.15.1


Modified: pkg/Rcpp/inst/skeleton/zzz.R
===================================================================
--- pkg/Rcpp/inst/skeleton/zzz.R	2012-06-21 13:54:11 UTC (rev 3635)
+++ pkg/Rcpp/inst/skeleton/zzz.R	2012-06-21 14:20:12 UTC (rev 3636)
@@ -1,15 +1,16 @@
 
-## For R 2.15.0 we still need require(), but note the R CMD check issue
-.onLoad <- function(libname, pkgname){
-    require("methods")  ## needed, but upsets R CMD check
-    loadRcppModules()
-}
+## Up until R 2.15.0, the require("methods") is needed but (now)
+## triggers an warning from R CMD check
+#.onLoad <- function(libname, pkgname){
+#    #require("methods")  ## needed with R <= 2.15.0
+#    loadRcppModules()
+#}
 
-## For R 2.15.1 and later this will work. Note that calling loadModule() triggers
+
+## For R 2.15.1 and later this also works. Note that calling loadModule() triggers
 ## a load action, so this does not have to be placed in .onLoad() or evalqOnLoad().
-#  loadModule("NumEx", TRUE)
-#  loadModule("yada", TRUE)
-#  loadModule("stdVector", TRUE)
-#})
+loadModule("NumEx", TRUE)
+loadModule("yada", TRUE)
+loadModule("stdVector", TRUE)
 
 



More information about the Rcpp-commits mailing list