createCppJsonFile {stochtree} | R Documentation |
Create a C++ Json object from a Json file
Description
Create a C++ Json object from a Json file
Usage
createCppJsonFile(json_filename)
Arguments
json_filename |
Name of file to read. Must end in |
Value
CppJson
object
Examples
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)
[Package stochtree version 0.1.1 Index]