[Blotter-commits] r256 - pkg/quantstrat/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Feb 24 16:17:54 CET 2010


Author: braverock
Date: 2010-02-24 16:17:54 +0100 (Wed, 24 Feb 2010)
New Revision: 256

Modified:
   pkg/quantstrat/R/match.names.R
Log:
- use collapse to get rid of vectorization in paste()

Modified: pkg/quantstrat/R/match.names.R
===================================================================
--- pkg/quantstrat/R/match.names.R	2010-02-23 22:43:43 UTC (rev 255)
+++ pkg/quantstrat/R/match.names.R	2010-02-24 15:17:54 UTC (rev 256)
@@ -19,7 +19,9 @@
         loc <- c(loc,grep(mname,data_names))
     }
     if ( !identical(length(loc),length(match_names)) ) {
-        warning(paste("all columns not located in",as.character(match_names),"for",as.character(data_names)))  
+        mstr<-paste(match_names,collapse=' ')
+        dstr<-paste(data_names,collapse=' ')
+        warning(paste("all columns not located in",mstr,"for",dstr))  
     }
     return(loc)
 }



More information about the Blotter-commits mailing list