print.NDExConnection: Print a NDExConnection object

Description Usage Arguments Value See Also Examples

View source: R/ndex_connect.r

Description

This function creates an NDExConnection which stores options and authentication details. It is a parameter required for most of the other ndexr functions. If username and password are missing an anonymous connection is created, which already offers most of the retrieval functionality.

Usage

1
2
## S3 method for class 'NDExConnection'
print(x, ...)

Arguments

x

NDExConnection; stores options, authentication and api configuration

...

further arguments passed to or from other methods.

Value

Just prints the NDExConnection object

See Also

ndex_connect and ndex_config

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
ndexcon = ndex_connect()   ## log in anonymously
print(ndexcon)
ndexcon = ndex_connect(verbose=TRUE)   ## same as above with extended feedback
print(ndexcon)
## Not run: 
## log in with credentials
ndexcon = ndex_connect('user','password')
print(ndexcon)
## running some NDEx server locally
ndexcon = ndex_connect(host='localhost:8765')
print(ndexcon)
## manually change the api and connection configuration
ndexcon = ndex_connect(ndexConf=ndex_config$Version_2.0)
print(ndexcon)

## End(Not run)

ndexr documentation built on March 13, 2021, 2 a.m.