[Blotter-commits] r178 - in pkg/blotter: data demo

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Jan 18 17:27:04 CET 2010


Author: braverock
Date: 2010-01-18 17:27:04 +0100 (Mon, 18 Jan 2010)
New Revision: 178

Modified:
   pkg/blotter/data/amzn.rda
   pkg/blotter/demo/amzn_test.R
Log:
- update demo so that it cleans up and can be run multiple times

Modified: pkg/blotter/data/amzn.rda
===================================================================
(Binary files differ)

Modified: pkg/blotter/demo/amzn_test.R
===================================================================
--- pkg/blotter/demo/amzn_test.R	2010-01-18 16:20:58 UTC (rev 177)
+++ pkg/blotter/demo/amzn_test.R	2010-01-18 16:27:04 UTC (rev 178)
@@ -11,4 +11,6 @@
 # update the portfolio stats
 updatePortf("amzn_port",Dates="2010-01-14")
 # and look at it
-chart.Posn("amzn_port","amzn",Dates="2010-01-14")
\ No newline at end of file
+chart.Posn("amzn_port","amzn",Dates="2010-01-14")
+rm("amzn","amzn.trades")
+rm("portfolio.amzn_port",pos=.blotter)
\ No newline at end of file



More information about the Blotter-commits mailing list