getJSON: getJSON

Description Usage Arguments Value Examples

Description

getJSON a JSON string from the browser, describing the graph in cytoscape.js terms

Usage

1
2
## S4 method for signature 'RCyjs'
getJSON(obj)

Arguments

obj

an RCyjs instance

Value

a JSON string

Examples

1
2
3
4
5
6
if(interactive()){
   sampleGraph <- simpleDemoGraph()
   rcy <- RCyjs(title="getJSON", graph=sampleGraph)
   s <- getJSON(rcy)
   s.asList <- fromJSON(s)  # easier to inspect if you wish toa
   }

paul-shannon/RCyjs documentation built on May 28, 2019, 1:15 p.m.