[Blotter-commits] r1135 - pkg/quantstrat/demo
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Aug 26 15:28:35 CEST 2012
Author: braverock
Date: 2012-08-26 15:28:35 +0200 (Sun, 26 Aug 2012)
New Revision: 1135
Modified:
pkg/quantstrat/demo/bbandParameters.R
pkg/quantstrat/demo/luxor.3.Parameters.R
Log:
- add comments describing using doParallel in the demos, demos will run single threaded by default for now
Modified: pkg/quantstrat/demo/bbandParameters.R
===================================================================
--- pkg/quantstrat/demo/bbandParameters.R 2012-08-26 01:22:09 UTC (rev 1134)
+++ pkg/quantstrat/demo/bbandParameters.R 2012-08-26 13:28:35 UTC (rev 1135)
@@ -6,6 +6,11 @@
require(foreach,quietly=TRUE)
require(quantstrat)
+# 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
+
demo('bbands',ask=FALSE)
#the user should load a parallel backend for foreach before running,
# or this will run in single threaded mode
Modified: pkg/quantstrat/demo/luxor.3.Parameters.R
===================================================================
--- pkg/quantstrat/demo/luxor.3.Parameters.R 2012-08-26 01:22:09 UTC (rev 1134)
+++ pkg/quantstrat/demo/luxor.3.Parameters.R 2012-08-26 13:28:35 UTC (rev 1135)
@@ -24,8 +24,12 @@
###############################################################################
-#require(foreach,quietly=TRUE)
-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