Running examples in ‘streamConnect-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: DSC_WebService
> ### Title: A DSC Interface for a DSC Running as a Web Service
> ### Aliases: DSC_WebService
> 
> ### ** Examples
> 
> # find a free port
> port <- httpuv::randomPort()
> port
[1] 25421
> 
> # deploy a clustering process listening for data on the port
> rp1 <- publish_DSC_via_WebService("DSC_DBSTREAM(r = .05)", port = port)
> rp1
PROCESS 'R', running, pid 2939801.
> 
> # get a local DSC interface
> dsc <- DSC_WebService(paste0("http://localhost", ":", port), 
+   verbose = TRUE, config = httr::verbose(info = TRUE))
Connecting to DSC Web service at http://localhost:25421
*  Host localhost:25421 was resolved.
*  IPv6: ::1
*  IPv4: 127.0.0.1
*    Trying [::1]:25421...
*  connect to ::1 port 25421 from ::1 port 45808 failed: Connection refused
*    Trying 127.0.0.1:25421...
*  connect to 127.0.0.1 port 25421 from 127.0.0.1 port 55872 failed: Connection refused
*  Failed to connect to localhost port 25421 after 1 ms: Couldn't connect to server
*  Closing connection
Error in curl::curl_fetch_memory(url, handle = handle): Failed to connect to localhost port 25421 after 1 ms: Couldn't connect to server
Request failed [ERROR]. Retrying in 1 seconds...
*  Hostname localhost was found in DNS cache
*    Trying [::1]:25421...
*  connect to ::1 port 25421 from ::1 port 45814 failed: Connection refused
*    Trying 127.0.0.1:25421...
*  connect to 127.0.0.1 port 25421 from 127.0.0.1 port 55874 failed: Connection refused
*  Failed to connect to localhost port 25421 after 1 ms: Couldn't connect to server
*  Closing connection
Error in curl::curl_fetch_memory(url, handle = handle): Failed to connect to localhost port 25421 after 1 ms: Couldn't connect to server
Request failed [ERROR]. Retrying in 3.4 seconds...
*  Hostname localhost was found in DNS cache
*    Trying [::1]:25421...
*  connect to ::1 port 25421 from ::1 port 32966 failed: Connection refused
*    Trying 127.0.0.1:25421...
*  connect to 127.0.0.1 port 25421 from 127.0.0.1 port 56840 failed: Connection refused
*  Failed to connect to localhost port 25421 after 1 ms: Couldn't connect to server
*  Closing connection
Error in curl::curl_fetch_memory(url, handle = handle) : 
  Failed to connect to localhost port 25421 after 1 ms: Couldn't connect to server
Calls: DSC_WebService -> <Anonymous>
Execution halted