Read a backend state from JSON
Examples
state <- xgeo_state(matrix(c(1, -1, 2, 0), nrow = 2))
path <- tempfile(fileext = ".json")
write_xgeo_state(state, path)
restored <- read_xgeo_state(path)
class(restored)
#> [1] "xgeo_state"
Read a backend state from JSON
state <- xgeo_state(matrix(c(1, -1, 2, 0), nrow = 2))
path <- tempfile(fileext = ".json")
write_xgeo_state(state, path)
restored <- read_xgeo_state(path)
class(restored)
#> [1] "xgeo_state"