#' Check the version of Cytoscape
#'
#' @param base.url cyrest base url for communicating with cytoscape
#' @return Cytoscape version
#' @export
#' @import httr
#' @import RJSONIO
checkCytoscapeVersion<-function(base.url='http://localhost:1234/v1'){
checkversion.url = paste(base.url, "version", sep="/")
res = GET(checkversion.url)
cytoscape.version = fromJSON(rawToChar(res$content))
return(cytoscape.version)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.