load_system: Load an orbit_system from disk

View source: R/save_load.R

load_systemR Documentation

Load an orbit_system from disk

Description

Restores an 'orbit_system' previously saved with [save_system()].

Usage

load_system(path)

Arguments

path

File path to an '.rds' file created by [save_system()].

Value

An 'orbit_system' object.

Examples


sys <- create_system() |>
  add_sun() |>
  add_planet("Earth", parent = "Sun")

path <- file.path(tempdir(), "my_system.rds")
save_system(sys, path)
restored <- load_system(path)


orbitr documentation built on Oct. 2, 2026, 1:06 a.m.