Learn R Programming

RSBJson (version 1.1.2)

RSBJsonService: Generic Function to Handle R Requests from RSB JSON Applications

Description

The function extracts relevant information from the JSON string to dispatch to the appropriate R wrapper for that particular application

Usage

RSBJsonService(jsonString)

Arguments

jsonString

character vector of length one containing the JSON string

Value

object of class json as returned by toJSON

Examples

Run this code
# NOT RUN {
examplePath <- system.file("examples", "example.json", package = "RSBJson")
exampleCon <- file(description = examplePath, open = "rt")
exampleLines <- readLines(exampleCon)
close(exampleCon)
exampleString <- paste(exampleLines, collapse = "\n")
(string <- RSBJsonService(jsonString = exampleString))
# }

Run the code above in your browser using DataLab