toJSObject: map an R list object into a string containing javascript code...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

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

Usage

1

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

1
2
3
4
5
6
7
arg_list <- list(
  tooltip = "some tooltip",
  width = 200,
  height = "auto",
  id = String("noquote")
)
toJSObject(arg_list)

gWidgetsWWW2 documentation built on May 2, 2019, 6:10 p.m.