Skip to contents

Reconstructs through the chart's setup_* function rather than its constructor, so a document from any source – another interface, a hand-written file, a language model – arrives resolved through the same seam a direct call goes through.

Usage

read_chart_config(x)

Arguments

x

Character: Path to a JSON file, or a JSON string.

Value

ChartConfig subclass object.

Author

EDG

Examples

path <- tempfile(fileext = ".json")
write_chart_config(setup_ScatterConfig(x = "wt", y = "mpg", fit = "glm"), path)
read_chart_config(path)@fit
#> [1] "glm"
unlink(path)