Make a connection to DVID server

dv_conn(
  server = Sys.getenv("drvid.server"),
  node = Sys.getenv("drvid.node"),
  conn = NULL,
  ...
)

Arguments

server

DVID server (with optional port specification)

node

DVID node

conn

A pre-existing connection object

...

Named options / headers to be set in the curl handle (see section Curl options for details)

Value

An list of class dv_conn

Curl options

drvid uses the curl library provided by the curl package to carry out remote requests. You can set curl options by passing additional named arguments captured by .... For example you can set authentication or a proxy. See handle and curl_options for a full list of possible options.

You can also set default curl options using environment variables with names of the form drvid.curl.<curloption>. For example the following entry in you Renviron file will set the curl proxy option.

drvid.curl.proxy="socks5://localhost:6666"

See also

Examples

if (FALSE) { conn1 <- dv_conn('http://dvid.connectomesrus.com:8900', node='a32b') conn2 <- dv_conn('http://dvid.connectomesrus.com:8900', node='a42c') }