Learn R Programming

amapro (version 0.1.4)

am.inspect: Map to JSON

Description

Convert map elements to JSON string

Usage

am.inspect(wt, json = TRUE, ...)

Value

A JSON string if json is TRUE and a list otherwise.

Arguments

wt

An amapro widget as returned by am.init

json

Boolean whether to return a JSON, or a list, default TRUE

...

Additional arguments to pass to toJSON

Details

Must be invoked or chained as last command.

Examples

Run this code
if (interactive()) {
  am.init(viewMode= '3D', zoom= 10, pitch= 60) |>
    am.control(ctype= 'ControlBar', position= 'RT') |>
    am.inspect()
}

Run the code above in your browser using DataLab