When running wcde::get_wcde() for several countries, I get "Error in gzfile(file, "rb") : all connections are in use". NCONNECTIONS in normally compiled R is 128. The error occurrs because line 98 in get_wcde_single calls the function read_with_progress() multiple times. read_with_progress opens connections using url() without explicitly closing them. I suggest you do con <- f |> url(); df <- readRDS(con); close(con)