Skip to contents

Loads a previously saved artifact by id from the store index and object files.

Usage

store_get(store, id)

Arguments

store

An insider_store handle created by insider_store().

id

The artifact id to retrieve.

Value

The stored artifact object.

Examples

proj <- tempfile("proj-")
dir.create(proj)
store <- insider_store(proj, create = TRUE)
artifact <- structure(list(name = "demo"), class = "insider_demo")
id <- store_save(store, artifact, label = "demo artifact")
#> Saved "demo-c6be45ee" to /tmp/Rtmpvw2GbA/proj-180e7e8fa1b4/.insider.
store_get(store, id)
#> $name
#> [1] "demo"
#> 
#> attr(,"class")
#> [1] "insider_demo"