Dear Equation:
I highly appreciated your prompt response. However, I get errors as follow:
library(httr)
dataset <- httr::GET("https://www.kaggle.com/api/v1/competitions/data/download/10445/train.csv", httr::authenticate(username, authkey, type = "basic"))
Error in stopifnot(is.character(user), length(user) == 1) :
object 'username' not found
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)
Appreciated it and thank you again.
Best Wishes
Chuan