set curl timout options rnoaa

140 views Asked by At

I'm trying to use the rnoaa R package and am having some difficulty. When I run the following I get an error.

>ghcnd_stations()
Error in curl::curl_fetch_memory(x$url$url, handle = x$url$handle) : 
  Timeout was reached: Connection timed out after 10000 milliseconds

I don't have any issues with other requests

>ncdc_stations(limit=1)
$meta
$meta$totalCount
[1] 139456

$meta$pageCount
[1] 1

$meta$offset
[1] 1


$data
  elevation    mindate    maxdate latitude             name datacoverage          id elevationUnit longitude
1       139 1948-01-01 2014-01-01  31.5702 ABBEVILLE, AL US       0.8813 COOP:010008        METERS  -85.2482

attr(,"class")
[1] "ncdc_stations"

I've tried changing global options with

>set_config(timeout(seconds = 60))

But no success. Any help would be appreciated.

0

There are 0 answers