[R-SIG-Finance] blotter updatePortf issue..

me me at censix.com
Mon Sep 3 08:30:01 CEST 2012


The post that mentions your error

http://r.789695.n4.nabble.com/blotter-updatePortf-issues-tp4635933.html

also mentions a workaround:

http://r-forge.r-project.org/tracker/index.php?func=detail&aid=2116&group_id=118&atid=516

Detailed description
While running demo/macd.R in the quantstrat package with --vanilla, I
got the following error:

Error in if (length(c(year, month, day, hour, min, sec)) == 6 &&
c(year, : missing value where TRUE/FALSE needed

It appears that this error is generated by .parse8061(), because there
is no TZ defined. Although there is a test for TZ=='' in
the .parse8061() function, that does not seem to work .... (didn't look
any deeper, sorry ;-) )

Setting TZ to eg. "UTC" fixes the problem.






------------------------------------------------------------------
Soren Wilkening

http://censix.com



More information about the R-SIG-Finance mailing list