Skip to contents

This function takes a file path to a JSON file containing a teal_slices object and restores it to its original form. The restored teal_slices object can be used to access filter states and their corresponding attributes.

Usage

slices_restore(file)

Arguments

file

Path to file where teal_slices is stored. Must have a .json extension and read access.

Value

A teal_slices object restored from the file.

Examples

if (interactive()) {
  # Restore a teal_slices object from a file
  tss_restored <- slices_restore("path/to/file.json")
}