[Blotter-commits] r1710 - in pkg/quantstrat: R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Nov 2 00:26:51 CET 2015


Author: bodanker
Date: 2015-11-02 00:26:50 +0100 (Mon, 02 Nov 2015)
New Revision: 1710

Modified:
   pkg/quantstrat/R/chart.forward.R
   pkg/quantstrat/R/chart.forward.training.R
   pkg/quantstrat/R/orders.R
   pkg/quantstrat/man/getOrderBook.Rd
Log:
Fix minor issues caught by R CMD check

Remove unneeded require(xtsExtra) call from chart.forward and
chart.forward.training. Correct getOrderBook alias (was getOrderbook).


Modified: pkg/quantstrat/R/chart.forward.R
===================================================================
--- pkg/quantstrat/R/chart.forward.R	2015-11-01 21:36:29 UTC (rev 1709)
+++ pkg/quantstrat/R/chart.forward.R	2015-11-01 23:26:50 UTC (rev 1710)
@@ -6,8 +6,6 @@
 
 chart.forward <- function(audit.filename)
 {
-    if(!require(xtsExtra, quietly=TRUE)) stop('The "xtsExtra" package is required to use this function')
-
     #.audit <- NULL
     if(is.null(.audit)) stop ('You need to run a walk forward test first to create the .audit environment')
   

Modified: pkg/quantstrat/R/chart.forward.training.R
===================================================================
--- pkg/quantstrat/R/chart.forward.training.R	2015-11-01 21:36:29 UTC (rev 1709)
+++ pkg/quantstrat/R/chart.forward.training.R	2015-11-01 23:26:50 UTC (rev 1710)
@@ -6,8 +6,6 @@
 
 chart.forward.training <- function(audit.filename)
 {
-    if(!require(xtsExtra, quietly=TRUE)) stop('The "xtsExtra" package is required to use this function')
-
     .audit <- NULL
 
     load(audit.filename)

Modified: pkg/quantstrat/R/orders.R
===================================================================
--- pkg/quantstrat/R/orders.R	2015-11-01 21:36:29 UTC (rev 1709)
+++ pkg/quantstrat/R/orders.R	2015-11-01 23:26:50 UTC (rev 1710)
@@ -23,7 +23,7 @@
 #' }   
 #' @aliases
 #' get.orderbook
-#' getOrderbook
+#' getOrderBook
 #' @rdname getOrderBook      
 #' @export get.orderbook 
 #' @export getOrderBook

Modified: pkg/quantstrat/man/getOrderBook.Rd
===================================================================
--- pkg/quantstrat/man/getOrderBook.Rd	2015-11-01 21:36:29 UTC (rev 1709)
+++ pkg/quantstrat/man/getOrderBook.Rd	2015-11-01 23:26:50 UTC (rev 1710)
@@ -2,7 +2,7 @@
 % Please edit documentation in R/orders.R
 \name{get.orderbook}
 \alias{get.orderbook}
-\alias{getOrderbook}
+\alias{getOrderBook}
 \title{get the order book object}
 \usage{
 get.orderbook(portfolio, envir = .strategy)



More information about the Blotter-commits mailing list