# NOT RUN {
data(cars)
# write data to an RDS file
qwrite(cars, "cars.rds")
# infer output type based on the class of the cars object
qwrite(cars, "cars.dfm", type=NA)
# read data back in
x1 <- qread("cars.rds")
# specify the type explicitly
x3 <- qread("cars.dfm", type="data.frame")
# read all files (with extension) in current directory
xs <- qread(".", pattern="cars")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab