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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Oct 24 21:13:56 CEST 2013


Author: opentrades
Date: 2013-10-24 21:13:56 +0200 (Thu, 24 Oct 2013)
New Revision: 1550

Modified:
   pkg/quantstrat/R/paramsets.R
Log:
- using registerDoSEQ() is now handled differently in appl.paramset() so it does noy wipe the .blotter and .startegy environments 



Modified: pkg/quantstrat/R/paramsets.R
===================================================================
--- pkg/quantstrat/R/paramsets.R	2013-10-24 12:34:33 UTC (rev 1549)
+++ pkg/quantstrat/R/paramsets.R	2013-10-24 19:13:56 UTC (rev 1550)
@@ -445,8 +445,11 @@
         # also, environments persist in each slave, so data may be accumulating
         # for each transition through the foreach loop
         #
-        rm(list=ls(pos=.blotter), pos=.blotter)
-        rm(list=ls(pos=.strategy), pos=.strategy)
+        if(!getDoSeqRegistered())
+        {
+            rm(list=ls(pos=.blotter), pos=.blotter)
+            rm(list=ls(pos=.strategy), pos=.strategy)
+        }
 
         list2env(env.instrument, envir=FinancialInstrument:::.instrument)
 



More information about the Blotter-commits mailing list