Closed joshuaulrich closed 5 years ago
Great, thank you so much!
Hi Edzer, I need to release the version of xts that triggers this error. This will cause a CRAN check failure in geoSpectral. Can you please prepare a spacetime release in the near future?
Done, now; thanks!
Thank you! I saw {spacetime} in incoming/ when I submitted {xts}, so thanks for getting it to CRAN quickly!
It's best to access object attributes using provided methods, instead of calling attr(x, 'foo'). So xts::indexTZ() should have been used.
The tzone attribute is being removed from the xts object after xts version 0.11-2, and will only be attached to the index. indexTZ() is also deprecated and replaced by tzone(), so we shouldn't use indexTZ().
Add a tzone() function that will handle tzone attributes for xts and POSIXct objects. The xts index had a tzone attribute in xts version 0.8-8, so get the index attribute for xts objects, and the tzone attribute for POSIXct (or any other) object. Use xts::tzone() if the loaded xts version is greater than 0.11-2.
See joshuaulrich/xts#245 for details.
Fixes #37.