toJSObject {gWidgetsWWW2}R Documentation

map an R list object into a string containing javascript code representation of an object

Description

map an R list object into a string containing javascript code representation of an object

Usage

toJSObject(x)

Arguments

x

a list that will map to an object literal. E.g., list(a=1, b="a") goes to a:1, b:'a'

Value

a string with the list formatted as code to produce a JavaScript object

Examples

arg_list <- list(
  tooltip = "some tooltip",
  width = 200,
  height = "auto",
  id = String("noquote")
)
toJSObject(arg_list)

[Package gWidgetsWWW2 version 0.4-8 Index]