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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Feb 21 11:30:53 CET 2013


Author: opentrades
Date: 2013-02-21 11:30:53 +0100 (Thu, 21 Feb 2013)
New Revision: 1400

Modified:
   pkg/quantstrat/R/tradeGraphs.R
Log:
- now checks if rgl can be loaded



Modified: pkg/quantstrat/R/tradeGraphs.R
===================================================================
--- pkg/quantstrat/R/tradeGraphs.R	2013-02-21 09:57:58 UTC (rev 1399)
+++ pkg/quantstrat/R/tradeGraphs.R	2013-02-21 10:30:53 UTC (rev 1400)
@@ -24,6 +24,8 @@
     # TODO: fix axes to use non scientific notation
     # TODO: fix use of full rainbow for small fractions (eg. Profit.Factor, now only uses red)
 
+    if(!require(rgl, quietly=TRUE)) stop('The "rgl" package is required to use this function')
+
     if(!require(reshape2, quietly=TRUE))    stop('The "reshape2" package is required to use this function')
    
     if(missing(stats))      stop('stats undefined')



More information about the Blotter-commits mailing list