Good day, everyone. My name is Chuan. I need expert opinions from the experts. I manage to extract and manipulate the dataset from Kaggle (For example New York City Airport Activity | Kaggle). I am interested to import the CSV directly into R without download it. Is it possible to conduct this task using R?
I have tried several methods that I found from several R-related forums. However, it's not working well.
temp <- tempfile()
download.file(dataset$url,temp)
Error in charToRaw(URL) : object 'dataset' not found
data <- read.csv(unz(temp, "train.csv"))
Error in open.connection(file, "rt") : cannot open the connection
In addition: Warning message:
In open.connection(file, "rt") :
cannot open zip file 'C:\Users\User\AppData\Local\Temp\RtmpyaRqJ1\file91463966cdb'
unlink(temp)