[Rcpp-commits] r2164 - pkg/Rcpp/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Sep 24 17:40:55 CEST 2010


Author: edd
Date: 2010-09-24 17:40:54 +0200 (Fri, 24 Sep 2010)
New Revision: 2164

Modified:
   pkg/Rcpp/R/zzz.R
Log:
minor rewording of message and re-indenting while we're at it


Modified: pkg/Rcpp/R/zzz.R
===================================================================
--- pkg/Rcpp/R/zzz.R	2010-09-24 15:37:53 UTC (rev 2163)
+++ pkg/Rcpp/R/zzz.R	2010-09-24 15:40:54 UTC (rev 2164)
@@ -16,12 +16,13 @@
 # along with Rcpp.  If not, see <http://www.gnu.org/licenses/>.
 
 .onLoad <- function(libname, pkgname){
-	install_help_workaround()
-	
-	minimum_svn_rev <- packageDescription( pkgname )[["MinimumSvnRev"]]
-	if( as.integer(R.version[["svn rev"]]) < as.integer(minimum_svn_rev)){
-		packageStartupMessage(gettextf("R version (%s) too old for required (%s) for full use of reference methods",
-                                               R.version[["svn rev"]], minimum_svn_rev))
-	}
+    install_help_workaround()
+
+    minimum_svn_rev <- packageDescription( pkgname )[["MinimumSvnRev"]]
+    if( as.integer(R.version[["svn rev"]]) < as.integer(minimum_svn_rev)){
+        packageStartupMessage(gettextf(paste("R version (%s) older than minimum required (%s)",
+                                             "for full use of reference methods"),
+                                       R.version[["svn rev"]], minimum_svn_rev))
+    }
 }
 



More information about the Rcpp-commits mailing list