View source: R/serialization.R
createCppJsonFile | R Documentation |
Create a C++ Json object from a Json file
createCppJsonFile(json_filename)
json_filename |
Name of file to read. Must end in |
CppJson
object
example_vec <- runif(10)
example_json <- createCppJson()
example_json$add_vector("myvec", example_vec)
tmpjson <- tempfile(fileext = ".json")
example_json$save_file(file.path(tmpjson))
example_json_roundtrip <- createCppJsonFile(file.path(tmpjson))
unlink(tmpjson)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.