Closed svenb78 closed 1 year ago
Hmm ... perhaps I mixed up qload
and qread
. Sorry for that. But what is the difference?
Hi, yes qload
and qread
are different. The base R comparables are load
and readRDS
.
qload
will take a list in a file and put it into the global environment. qread
will return an object in a file e.g. tmp02 <- qread("tmp01.qs")
Hi,
given the following minimal example:
If I use
qs::qload(file = "tmp01.qs")
for re-loading the data, I get each column,x1
andx2
, as a single object. If I usetmp02 <- qs::qload(file = "tmp01.qs")
, I additionally get an environmenttmp02
. I never saw that before.If I use
qs::qsavem(tmp01, file = "tmp01.qs")
instead,qs::qload(file = "tmp01.qs")
re-loads the data frametmp01
as expected.What is going on here?