URL에서 CSV 파일을 가져 오려고하는데 1 분 후에 시간 초과가 된 것 같습니다. csv 파일은 요청 시점에 생성되므로 1 분 이상 필요합니다. 시간 제한을 늘리려고했지만 작동하지 않았지만 1 분 후에도 계속 실패합니다.URL 요청 실패/시간 초과 R
# Start the timer
ptm <- proc.time()
urlCSV <- getURL("http://someurl.com/getcsv", timeout = 200)
txtCSV <- textConnection(urlCSV)
csvFile <- read.csv(txtCSV)
close(txtCSV)
# Stop the timer
proc.time() - ptm
결과 로그 :
Error in open.connection(file, "rt") : cannot open the connection
In addition: Warning message:
In open.connection(file, "rt") :
cannot open: HTTP status was '500 Internal Server Error'
user system elapsed
0.225 0.353 60.445
그것이 1 분에 도달하면 실패 유지를 어떻게 할 문제를 수 다음과 같이
나는 url
및 read.csv
을 사용하고 있습니다? 아니면 타임 아웃을 늘리려면 어떻게해야합니까?