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 Feb 12, 2020
1 parent ab68cbf commit bee3701
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 bee3701

Please sign in to comment.