| load_system | R Documentation |
Restores an 'orbit_system' previously saved with [save_system()].
load_system(path)
path |
File path to an '.rds' file created by [save_system()]. |
An 'orbit_system' object.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.