qread

0th

Percentile

qread

Reads a object in a file serialized to disk

Usage
qread(file)
Arguments
file

the file name/path

Value

The de-serialized object

Aliases
  • qread
Examples
# NOT RUN {
x <- data.frame(int = sample(1e3, replace=TRUE), 
                 num = rnorm(1e3), 
                 char = randomStrings(1e3), stringsAsFactors = FALSE)
myfile <- tempfile()
qsave(x, myfile)
x2 <- qread(myfile)
identical(x, x2) # returns true

z <- 1:1e7
myfile <- tempfile()
qsave(z, myfile)
z2 <- qread(myfile)
identical(z, z2) # returns true

w <- as.list(rnorm(1e6))
myfile <- tempfile()
qsave(w, myfile)
w2 <- qread(myfile)
identical(w, w2) # returns true
# }
Documentation reproduced from package qs, version 0.12, License: AGPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.