orbital_json_read {orbital}R Documentation

Read orbital json file

Description

Reading an orbital object from disk

Usage

orbital_json_read(path)

Arguments

path

file on disk.

Details

This function is aware of the version field of the orbital object, and will read it in correctly, according to its specification.

Value

An orbital object.

See Also

orbital_json_write()

Examples


library(workflows)
library(recipes)
library(parsnip)

rec_spec <- recipe(mpg ~ ., data = mtcars) %>%
  step_normalize(all_numeric_predictors())

lm_spec <- linear_reg()

wf_spec <- workflow(rec_spec, lm_spec)

wf_fit <- fit(wf_spec, mtcars)

orbital_obj <- orbital(wf_fit)

tmp_file <- tempfile()

orbital_json_write(orbital_obj, tmp_file)

orbital_json_read(tmp_file)


[Package orbital version 0.2.0 Index]