Loads a previously saved artifact by id from the store index and object files.
Arguments
- store
An
insider_storehandle created byinsider_store().- id
The artifact id to retrieve.
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/RtmpJqZdjB/proj-17b634287586/.insider.
store_get(store, id)
#> $name
#> [1] "demo"
#>
#> attr(,"class")
#> [1] "insider_demo"