Skip to content

Commit 88fff40

Browse files
committed
CRAN submission, addresses r devel /.difftime issue
1 parent 30375da commit 88fff40

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# version 0.6-8
22

3+
* address difftime issue new in R-devel rev 87670
4+
35
* `c.stars()` is more strict when combining time sequences; #703
46

57
* fix plotting when breaks contain duplicates; #728

R/dimensions.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ regular_intervals = function(x, epsilon = 1e-10) {
251251
else
252252
return(FALSE)
253253
}
254-
isTRUE(as.numeric(abs(diff(range(ud)) / mean(ud))) < epsilon)
254+
ud = as.numeric(ud)
255+
isTRUE((abs(diff(range(ud)) / mean(ud))) < epsilon)
255256
}
256257
}
257258

0 commit comments

Comments
 (0)