Skip to contents

Configure

snap_enable()
Configure shinysnap for a session
snap_dependency()
The client-side script as an HTML dependency
snap_exclude() snap_include()
Exclude or include inputs by pattern

Snapshot

snap_take()
Take a snapshot of the running app
snap_inputs() snap_values() snap_meta()
Access the parts of a snapshot
print(<shinysnap_restore>) print(<shinysnap_report>) print(<shinysnap>) format(<shinysnap>) as.list(<shinysnap>) print(<shinysnap_diff>)
Print, format, and coerce snapshots and restore results
snap_diff()
Compare two snapshots

Files

snap_write() snap_read()
Write a snapshot to a file and read it back
snap_serialize() snap_unserialize()
Convert a snapshot to and from JSON text

Restore

snap_restore()
Restore a snapshot into the running app
snap_is_restoring()
Is a restore in flight?

Hooks and restorers

snap_track()
Track server-side values
snap_on_save()
Register a hook that runs when a snapshot is taken
snap_on_restore() snap_on_restored()
Register hooks that run around a restore
snap_restorer() snap_restorers()
Register how an input is restored

UI helpers

snap_download_button() snap_download_handler()
Save-state button and its download handler
snap_file_input() snap_file_restore()
Restore-state upload and its handler

Interoperability

snap_as_bookmark_url() snap_as_test_inputs() snap_attachment()
Interoperate with bookmarks, tests, and bundles