[Blotter-commits] r503 - pkg/FinancialInstrument/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Dec 20 23:07:47 CET 2010


Author: braverock
Date: 2010-12-20 23:07:47 +0100 (Mon, 20 Dec 2010)
New Revision: 503

Modified:
   pkg/FinancialInstrument/R/load.instruments.R
Log:
- add make.names to dir name to look up, so that it won't have crazy chars in it.

Modified: pkg/FinancialInstrument/R/load.instruments.R
===================================================================
--- pkg/FinancialInstrument/R/load.instruments.R	2010-12-20 12:52:08 UTC (rev 502)
+++ pkg/FinancialInstrument/R/load.instruments.R	2010-12-20 22:07:47 UTC (rev 503)
@@ -161,7 +161,7 @@
     for (instr in instr_names){
         if(!use_identifier=='primary_id'){
             tmp_instr<-getInstrument(instr)
-            instr_str<-tmp_instr$identifiers[[use_identifier]]
+            instr_str<-make.names(tmp_instr$identifiers[[use_identifier]])
             if(!is.null(instr_str)) instr<-instr_str
             else {
                 instr_str<-tmp_instr[[use_identifier]]



More information about the Blotter-commits mailing list