Skip to content

Commit

Permalink
Use class<- workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Jun 19, 2019
1 parent b5e5699 commit 519c38d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/driver_fst.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ try_write_fst_value <- function(value, filename, compress,
scratch_dir = NULL) {
tmp <- tempfile(tmpdir = scratch_dir %||% tempdir())
if (compress) value <- fst::compress_fst(value)
fst::write_fst(data.frame(value), tmp)

fst::write_fst(structure(list(value = value), class = "data.frame"), tmp)
file.rename(tmp, filename)
}

Expand Down

0 comments on commit 519c38d

Please sign in to comment.