mikejohnson51 / climateR

An R 📦 for getting point and gridded climate data by AOI
https://mikejohnson51.github.io/climateR/
MIT License
168 stars 40 forks source link

Error in socketAccept #17

Closed rsmiller74 closed 3 years ago

rsmiller74 commented 3 years ago

I get a socket error when I attempt to run getTerrClim. However same error occurs for examples.

tmp<-getTerraClim(AOI=aoi, param=c(var),

  • startDate=str.date,
  • endDate=end.date) Error in socketAccept(socket = socket, blocking = TRUE, open = "a+b", : all connections are in use In addition: Warning messages: 1: In .Internal(socketAccept(socket, blocking, open, encoding, timeout)) : closing unused connection 123 (<-view-localhost:11875) 2: In .Internal(socketAccept(socket, blocking, open, encoding, timeout)) : closing unused connection 125 (<-view-localhost:11875) 3: In .Internal(socketAccept(socket, blocking, open, encoding, timeout)) : closing unused connection 124 (<-view-localhost:11875)
rsmiller74 commented 3 years ago

and for example code

AOI = aoi_get(state = "CA")

system.time({p = getPRISM(AOI, param = c('tmax','tmin'), startDate = "2018-10-29") Error in socketAccept(socket = socket, blocking = TRUE, open = "a+b", : all connections are in use In addition: Warning messages: 1: In .Internal(gc(verbose, reset, full)) : closing unused connection 123 (<-view-localhost:11875) 2: In .Internal(gc(verbose, reset, full)) : closing unused connection 127 (<-view-localhost:11875) 3: In .Internal(gc(verbose, reset, full)) : Rerun with Debug Error in socketAccept(socket = socket, blocking = TRUE, open = "a+b", : all connections are in use Timing stopped at: 0.44 0.06 0.92

mikejohnson51 commented 3 years ago

Hi @rsmiller74 just making sure your issues here are also closed out :)

library(AOI)
library(climateR)
library(rasterVis)

AOI = aoi_get(state = "CA")
p = getPRISM(AOI, param = c('tmax','tmin'), startDate = "2018-10-29")

levelplot(stack(p), margin = FALSE, par.settings = BuRdTheme)

Created on 2020-10-19 by the reprex package (v0.3.0)