[R-SIG-Finance] blotter updatePortf issues
gsee000 at gmail.com
Tue Jul 10 16:52:59 CEST 2012
Apologies for the misinformation. blotter was version 0.8.9 at Rev.
1027, and according to the OP version 0.8.9 does not have the error.
I am unable to reproduce the error.
On Tue, Jul 10, 2012 at 8:20 AM, G See <gsee000 at gmail.com> wrote:
> This does not have anything to do with xts. It is a blotter bug that
> was introduced in Rev. 1027
> You can see from Hideyoshi's traceback, that updatePortf was called
> with Dates=paste("::", as.Date(Sys.time()))
> 6: updatePortf(Portfolio = portfolio.st, Dates = paste("::",
> sep = "")) at macd.R#80
> Then, later, in .updatePosPL, a "/" is added to the date string
> 8: index(prices[paste("/", .parseISO8601(Dates)$last.time, sep = "")])
> So, it's trying to parse something that looks sort of like this "/::2012-07-10"
> That said, I'm not sure how to patch.
More information about the R-SIG-Finance