Skip to content

Commit

Permalink
fix: change open mode to allow file manipulation with an offset
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibb committed Mar 15, 2023
1 parent 5494f27 commit 89f56e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/OnDiskVector-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ setReplaceMethod(f="[",
if (length(value) != x@n) {
stop("Length of 'value' doesn't match length of 'x'.")
}
f <- file(x@path, "wb")
f <- file(x@path, "r+b")
on.exit(close(f))

if (x@offset)
Expand Down

0 comments on commit 89f56e4

Please sign in to comment.