# NOT RUN {
# create a zip file containing a csv
csvfile = tempfile(fileext = ".csv")
write.csv(cars, csvfile)
zipfile = tempfile(fileext = ".zip")
zip(zipfile, csvfile)
# read every file and convert it to a disk.frame
zip.df = zip_to_disk.frame(zipfile, tempfile(fileext = ".df"))
# there is only one csv file so it return a list of one disk.frame
zip.df[[1]]
# clean up
unlink(csvfile)
unlink(zipfile)
delete(zip.df[[1]])
# }
Run the code above in your browser using DataLab