update_json: Export json

Description Usage Arguments Examples

View source: R/config.R

Description

Updates a json file

Usage

1
update_json(config, pth)

Arguments

config

the nested list to output as a configuration file

pth

the path to the yaml file

Examples

1
2
3
4
5
6
7
## Not run: 
pth <- "./tests/testthat/test.json"
config <- read_json(pth)
config$test3 <- 3
update_json(config, pth)

## End(Not run)

holmesjoli/utilsR documentation built on Aug. 13, 2019, 12:31 p.m.