Dear All,
I was trying to download the csv from this site using Rstudio Server:
I tried the following methods:
this_rule_url = "https://www.federalregister.gov/documents/search.csv?conditions%5Bpublication_date%5D%5Bgte%5D=03%2F01%2F2018&conditions%5Bpublication_date%5D%5Blte%5D=03%2F31%2F2018&conditions%5Bsections%5D=business-and-industry&conditions%5Btype%5D%5B%5D=PRORULE"
fread(this_rule_url)
read.csv(curl(this_rule_url))
read.csv(this_rule_url)
rio::import(this_rule_url)
readr::read_csv(this_rule_url)
But I always run into the same error:
"Connection timed out"
or,
Error in curl::curl_download(input, tt, mode = "wb", quiet = !showProgress) :
Timeout was reached: Connection timed out after 10001 milliseconds"
The same code works in RStudio, but not on Rstudio Server.