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
   }

RCyjs documentation built on Nov. 8, 2020, 8:20 p.m.