dv_conn: Make a connection to DVID server

Description Usage Arguments Value Curl options See Also Examples

View source: R/conn.R

Description

Make a connection to DVID server

Usage

1
2
3
4
5
6
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

handle, curl_options

Examples

1
2
3
4
5
6
7
## Not run: 

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


## End(Not run)

jefferis/drvid documentation built on April 27, 2021, 2:42 p.m.