From noreply at r-forge.r-project.org Mon Jun 3 13:44:34 2013 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Mon, 3 Jun 2013 13:44:34 +0200 (CEST) Subject: [Blotter-commits] r1478 - in pkg/quantstrat: R man Message-ID: <20130603114435.0F139184A67@r-forge.r-project.org> Author: opentrades Date: 2013-06-03 13:44:34 +0200 (Mon, 03 Jun 2013) New Revision: 1478 Added: pkg/quantstrat/man/load.strategy.Rd pkg/quantstrat/man/save.strategy.Rd Modified: pkg/quantstrat/R/strategy.R Log: - added some documentation for load.strategy() and save.strategy() Modified: pkg/quantstrat/R/strategy.R =================================================================== --- pkg/quantstrat/R/strategy.R 2013-05-27 17:00:35 UTC (rev 1477) +++ pkg/quantstrat/R/strategy.R 2013-06-03 11:44:34 UTC (rev 1478) @@ -202,7 +202,8 @@ assign(strategy$name, strategy, envir=as.environment(envir)) } -# load a strategy object from disk into memory +#' load a strategy object from disk into memory +#' @param strategy.name a string specifying the name of the strategy object; will also be used to create a file name #' @export load.strategy <- function(strategy.name) { @@ -212,7 +213,8 @@ assign(.strategy$strategy$name, .strategy$strategy, envir=.strategy) } -# save a strategy object from memory onto disk +#' save a strategy object from memory onto disk +#' @param strategy.name a string specifying the name of the strategy object; will also be used to create a file name #' @export save.strategy <- function(strategy.name) { Added: pkg/quantstrat/man/load.strategy.Rd =================================================================== --- pkg/quantstrat/man/load.strategy.Rd (rev 0) +++ pkg/quantstrat/man/load.strategy.Rd 2013-06-03 11:44:34 UTC (rev 1478) @@ -0,0 +1,14 @@ +\name{load.strategy} +\alias{load.strategy} +\title{load a strategy object from disk into memory} +\usage{ + load.strategy(strategy.name) +} +\arguments{ + \item{strategy.name}{a string specifying the name of the + strategy object; will also be used to create a file name} +} +\description{ + load a strategy object from disk into memory +} + Added: pkg/quantstrat/man/save.strategy.Rd =================================================================== --- pkg/quantstrat/man/save.strategy.Rd (rev 0) +++ pkg/quantstrat/man/save.strategy.Rd 2013-06-03 11:44:34 UTC (rev 1478) @@ -0,0 +1,14 @@ +\name{save.strategy} +\alias{save.strategy} +\title{save a strategy object from memory onto disk} +\usage{ + save.strategy(strategy.name) +} +\arguments{ + \item{strategy.name}{a string specifying the name of the + strategy object; will also be used to create a file name} +} +\description{ + save a strategy object from memory onto disk +} + From noreply at r-forge.r-project.org Wed Jun 19 22:48:00 2013 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Wed, 19 Jun 2013 22:48:00 +0200 (CEST) Subject: [Blotter-commits] r1479 - pkg/FinancialInstrument/R Message-ID: <20130619204800.512E8185396@r-forge.r-project.org> Author: opentrades Date: 2013-06-19 22:47:59 +0200 (Wed, 19 Jun 2013) New Revision: 1479 Modified: pkg/FinancialInstrument/R/ls_strikes.R Log: - ls_strikes() now using ls_option_series() instead of ls_options() Modified: pkg/FinancialInstrument/R/ls_strikes.R =================================================================== --- pkg/FinancialInstrument/R/ls_strikes.R 2013-06-03 11:44:34 UTC (rev 1478) +++ pkg/FinancialInstrument/R/ls_strikes.R 2013-06-19 20:47:59 UTC (rev 1479) @@ -33,7 +33,7 @@ #' } #' @export ls_strikes <- function(pattern=NULL) { - symbols <- ls_options(pattern) + symbols <- ls_option_series(pattern, match=FALSE) tmp_symbols <- NULL for (symbol in symbols) { tmp_instr <- try(get(symbol,pos=FinancialInstrument:::.instrument),silent=TRUE) From noreply at r-forge.r-project.org Tue Jun 25 04:45:11 2013 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Tue, 25 Jun 2013 04:45:11 +0200 (CEST) Subject: [Blotter-commits] r1480 - pkg/FinancialInstrument/R Message-ID: <20130625024512.3FB29185906@r-forge.r-project.org> Author: gsee Date: 2013-06-25 04:45:10 +0200 (Tue, 25 Jun 2013) New Revision: 1480 Modified: pkg/FinancialInstrument/R/instrument.R Log: remove spurious code that was used for testing Modified: pkg/FinancialInstrument/R/instrument.R =================================================================== --- pkg/FinancialInstrument/R/instrument.R 2013-06-19 20:47:59 UTC (rev 1479) +++ pkg/FinancialInstrument/R/instrument.R 2013-06-25 02:45:10 UTC (rev 1480) @@ -745,7 +745,6 @@ primary_id = paste(symbol, "_", clean.si, sep=""))) } - CleanID(optnames[4], "GS") id.list <- lapply(optnames, CleanID, symbol) if (!isTRUE(overwrite)) {