Trying to send again...

Thanks. I tried setting timezone to UTC but still getting the same error.

Following are the changes I made and error output..

*> Sys.setenv(environment=".blotter", TZ="UTC")*
*> Sys.setenv(TZ="UTC")*
*> Sys.timezone()*
[1] "UTC"
>
updatePortf(Portfolio=portfolio,Dates=paste('::',as.Date(Sys.time()),sep='')
)
Error in if (length(c(year, month, day, hour, min, sec)) == 6 && c(year,  :
  missing value where TRUE/FALSE needed

Regards,
Pie

On Sun, Sep 2, 2012 at 11:30 PM, me <me@censix.com> wrote:

>
> 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
>

	[[alternative HTML version deleted]]

