I would like to read online data to R using download.file() as shown below.
download.file()
URL <- \"https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2Fs
Try following with heavy files
library(data.table) URL <- "http://d396qusza40orc.cloudfront.net/getdata%2Fdata%2Fss06hid.csv" x <- fread(URL)