[Blotter-commits] r667 - pkg/FinancialInstrument/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Jul 10 20:00:57 CEST 2011
Author: gsee
Date: 2011-07-10 20:00:56 +0200 (Sun, 10 Jul 2011)
New Revision: 667
Modified:
pkg/FinancialInstrument/R/buildSpread.R
Log:
make has.Mid available
Modified: pkg/FinancialInstrument/R/buildSpread.R
===================================================================
--- pkg/FinancialInstrument/R/buildSpread.R 2011-07-10 15:19:54 UTC (rev 666)
+++ pkg/FinancialInstrument/R/buildSpread.R 2011-07-10 18:00:56 UTC (rev 667)
@@ -36,6 +36,8 @@
#' @export
buildSpread <- function(spread_id, Dates = NULL, onelot=TRUE, prefer = NULL, auto.assign=TRUE, env=.GlobalEnv) #overwrite=FALSE
{
+ has.Mid <- quantmod:::has.Mid #FIXME: this should be exported from quatmod
+
##TODO: test something with a different currency
spread_instr <- try(getInstrument(spread_id))
if (inherits(spread_instr, "try-error") | !is.instrument(spread_instr)) {
More information about the Blotter-commits
mailing list