Skip to content

Commit af6a93c

Browse files
author
Bill Evans
committed
code review
1 parent 6fc1590 commit af6a93c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

R/between.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ between = function(x, lower, upper, incbounds=TRUE, NAbounds=TRUE, check=FALSE,
1717
}
1818
# POSIX check timezone match
1919
if (!ignore_tzone && is.px(x) && is.px(lower) && is.px(upper)) {
20-
tzs = sapply(list(x,lower,upper), function(x) {
20+
tzs = vapply_1c(list(x,lower,upper), function(x) {
2121
attr(x, "tzone", exact=TRUE) %||% ""
2222
})
2323
# lower/upper should be more tightly linked than x/lower, so error

man/between.Rd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ interpreted as \code{lower} and \code{y[[2]]} as \code{upper}.}
3535
It is set to \code{TRUE} by default for infix notations.}
3636
\item{NAbounds}{ If \code{lower} (\code{upper}) contains an \code{NA} what should \code{lower<=x} (\code{x<=upper}) return? By default \code{TRUE} so that a missing bound is interpreted as unlimited. }
3737
\item{check}{ Produce error if \code{any(lower>upper)}? \code{FALSE} by default for efficiency, in particular type \code{character}. }
38-
\item{ignore_tzone}{ \code{TRUE} means skip timezone checks among
39-
\code{x}, \code{lower}, and \code{upper}. }
38+
\item{ignore_tzone}{ \code{TRUE} means skip timezone checks among \code{x}, \code{lower}, and \code{upper}. }
4039
}
4140
\details{
4241

0 commit comments

Comments
 (0)