[Blotter-commits] r1136 - pkg/quantstrat/demo

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Aug 26 15:30:15 CEST 2012


Author: braverock
Date: 2012-08-26 15:30:15 +0200 (Sun, 26 Aug 2012)
New Revision: 1136

Modified:
   pkg/quantstrat/demo/luxor.4.Timespans.R
Log:
- add comments for using doParallel, demo will run single threaded for now


Modified: pkg/quantstrat/demo/luxor.4.Timespans.R
===================================================================
--- pkg/quantstrat/demo/luxor.4.Timespans.R	2012-08-26 13:28:35 UTC (rev 1135)
+++ pkg/quantstrat/demo/luxor.4.Timespans.R	2012-08-26 13:30:15 UTC (rev 1136)
@@ -30,7 +30,13 @@
 
 ###############################################################################
 
-require(doMC)
+#require(doMC)
+require(foreach,quietly=TRUE)
+# example parallel initialization for doParallel. this or doMC, or doRedis are 
+# most probably preferable to doSMP
+#require(doParallel)
+#registerDoParallel() # by default number of physical cores -1
+
 require(quantstrat)
 
 portfolio.st = 'forex'



More information about the Blotter-commits mailing list