[Blotter-commits] r903 - pkg/FinancialInstrument/inst/parser

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Jan 3 22:52:07 CET 2012


Author: gsee
Date: 2012-01-03 22:52:07 +0100 (Tue, 03 Jan 2012)
New Revision: 903

Modified:
   pkg/FinancialInstrument/inst/parser/TRTH_BackFill.R
Log:
 update to reflect new position of .instrument when auto-defining missing instruments

Modified: pkg/FinancialInstrument/inst/parser/TRTH_BackFill.R
===================================================================
--- pkg/FinancialInstrument/inst/parser/TRTH_BackFill.R	2012-01-03 19:46:22 UTC (rev 902)
+++ pkg/FinancialInstrument/inst/parser/TRTH_BackFill.R	2012-01-03 21:52:07 UTC (rev 903)
@@ -429,7 +429,7 @@
     # Remove everything from .instrument, put back the auto-defined missing instruments and save them
     try(rm_instruments(), silent=TRUE)
     lapply(missing_list, function(x) {
-        assign(x$primary_id, x, pos=.instrument)
+        assign(x$primary_id, x, pos=FinancialInstrument:::.instrument)
     })
 
     saveInstruments(paste("missing_instr",  format(Sys.time(), "%Y.%m.%d_%H%M%S"), sep='_'), path.output) #If you load this with loadInstruments it will not clobber .instrument



More information about the Blotter-commits mailing list