# NOT RUN {
# write to temporary location
cars.df = as.disk.frame(cars)
# specify a different path in the temporary folder, you are free to choose a different folder
cars_new_location.df = as.disk.frame(cars, outdir = file.path(tempdir(), "some_path.df"))
# specify a different number of chunks
# this writes to tempdir() by default
cars_chunks.df = as.disk.frame(cars, nchunks = 4, overwrite = TRUE)
# clean up
delete(cars.df)
delete(cars_new_location.df)
delete(cars_chunks.df)
# }
Run the code above in your browser using DataLab