Persists an insider_* object into a project-local .insider/ directory and
appends a metadata row to the store index. Recording is explicit: nothing is
saved unless store_save() is called.
Usage
store_save(store, x, label = NULL, tags = character())Arguments
- store
An
insider_storehandle created byinsider_store().- x
An artifact whose first class starts with
"insider_".- label
An optional human-readable label for the artifact.
Optional character tags stored as a comma-separated string in the index.
Examples
proj <- tempfile("proj-")
dir.create(proj)
store <- insider_store(proj, create = TRUE)
artifact <- structure(list(name = "demo"), class = "insider_demo")
store_save(store, artifact, label = "demo artifact", tags = "example")
#> Saved "demo-c6be45ee" to /tmp/Rtmpvw2GbA/proj-180e6df8d0a1/.insider.