Skip to content

Commit

Permalink
Fix failure of test..xts_class
Browse files Browse the repository at this point in the history
Reinstate the behaviour as of v0.10-2.  .indexCLASS should take
precedence over tclass.

Fixes #249.
  • Loading branch information
TomAndrews committed Jul 27, 2018
1 parent beb4267 commit 1d707c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/xts.R
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ function(x=NULL, index, tclass=c("POSIXct","POSIXt"),
.indexFORMAT <- eval(dots.names$.indexFORMAT,parent.frame())
else
.indexFORMAT <- NULL

## restore behaviour from v0.10-2
tclass <- .indexCLASS
xx <- .Call("add_xtsCoreAttributes", x, index, .indexCLASS, tzone, tclass,
c('xts','zoo'), .indexFORMAT, PACKAGE='xts')
# remove .indexFORMAT and .indexTZ that come through Ops.xts
Expand Down

0 comments on commit 1d707c5

Please sign in to comment.