joshuaulrich / xts

Extensible time series class that provides uniform handling of many R time series classes by extending zoo.
http://joshuaulrich.github.io/xts/
GNU General Public License v2.0
220 stars 71 forks source link

test.get_index_does_not_error_if_index_has_no_attributes() errors in R-devel #340

Closed joshuaulrich closed 3 years ago

joshuaulrich commented 3 years ago

The error is:

FAILURE in test.get_index_does_not_error_if_index_has_no_attributes:
Error in checkEquals(index(x), ix) :
     'tzone' attributes are inconsistent ('' and 'UTC')

Because all.equal.POSIXt() now errors if the 'tzone' attributes are not the same.

s <- Sys.time(); attr(s,'tzone') <- ""
su <- s; attr(su,'tzone') <- "UTC"
all.equal(s, su)
## [1] "'tzone' attributes are inconsistent ('' and 'UTC')"