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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Feb 24 18:45:21 CET 2012


Author: braverock
Date: 2012-02-24 18:45:21 +0100 (Fri, 24 Feb 2012)
New Revision: 945

Modified:
   pkg/quantstrat/R/parameters.R
Log:
- change to use .instrument environment in the FinancialInstrument NAMESPACE

Modified: pkg/quantstrat/R/parameters.R
===================================================================
--- pkg/quantstrat/R/parameters.R	2012-02-23 17:21:32 UTC (rev 944)
+++ pkg/quantstrat/R/parameters.R	2012-02-24 17:45:21 UTC (rev 945)
@@ -467,7 +467,7 @@
 	
 	
 	
-	instruments<-as.list(.instrument)
+	instruments<-as.list(FinancialInstrument:::.instrument)
 	getSymbols<-as.list(.getSymbols)
 	blotter<-as.list(.blotter)
 	
@@ -484,7 +484,7 @@
 				testPack<-list()
 				
 				#Pass enviorments needed.
-				.instrument<-as.environment(instruments)
+                FinancialInstrument:::.instrument<-as.environment(instruments)
 				.getSymbols<-as.environment(getSymbols)
 #				CAN NOT BE HERE, OTHERWISE will have problem extract to outside .blooter.. #.blotter<-as.environment(blotter)
 				



More information about the Blotter-commits mailing list