saveJSON: Converts the list objects into json files

Description Usage Arguments Value See Also Examples

View source: R/saveJSON.R

Description

This function creates a JSON file from a list object using jsonlite::toJSON() function. It also create a time versioned of the file to ensure the data are not overwritten by the visualizeR::push() function.

Usage

1
saveJSON(object, path, filename)

Arguments

object

the view list object to be saved

path

the path to file

filename

the name of the file

Value

a json file to be passed to the https://github.com/npellet/visualizer

See Also

visualizeR::push()

Examples

1
2
v <- list()
saveJSON(v, "~/", "view.json")

jwist/visualizeR documentation built on Dec. 1, 2019, 5:11 p.m.