OS: Win 7 64 bit RStudio Version 1.1.463
As per Getting and Cleaning Data course, I attempted to download a csv file with method = curl:
fileUrl <- "https://data.baltimorecity.gov/api/views/dz54-2aru/rows.csv?accessType=DOWNLOAD"
download.file(fileUrl, destfile = "./cameras.csv", method = "curl")
Error in download.file(fileUrl, destfile = "./cameras.csv", method = "curl") : 'curl' call had nonzero exit status
However, method = libcurl
resulted a successful download:
download.file(fileUrl, destfile = "./cameras.csv", method = "libcurl")
trying URL 'https://data.baltimorecity.gov/api/views/dz54-2aru/rows.csv?accessType=DOWNLOAD' downloaded 9443 bytes
changing from *http***s** to http produced exactly the same results for curl
and libcurl
, respectively.
Is there anyway to make this download work via method = curl
as per the course?
Thanks