Skip to content

Commit 8d0f874

Browse files
authored
Merge pull request #565 from andyquinterom/fix_NA
fix NA introduced into position
2 parents 9f0e29a + 92a1f2a commit 8d0f874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ code_point_to_unit <- function(line, pts) {
424424
n <- length(offsets)
425425
m <- offsets[n]
426426
result[pts >= n] <- m
427-
result[is.infinite(pts)] <- m
427+
result[!is.finite(pts)] <- m
428428
result
429429
}
430430

0 commit comments

Comments
 (0)