Skip to content

Commit

Permalink
Mention that R's seek is file-based.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Nov 6, 2024
1 parent be9e91a commit d26b3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ getDatabaseRanges <- function(name, starts, ends) {
o <- order(starts)
output <- character(length(o))
for (i in o) {
seek(handle, where=starts[i])
seek(handle, where=starts[i]) # where= seems to be zero-based in terms of its position.
output[i] <- rawToChar(readBin(handle, what=raw(), n=ends[i] - starts[i]))
}

Expand Down

0 comments on commit d26b3e4

Please sign in to comment.