Skip to contents

Declare shared computations

Wrap a target or an expression so its result is looked up before it runs.

tar_shared() tar_shared_raw()
Declare a target backed by a shared computation cache
shared_run()
Reuse the result of a computation

Cache and repositories

Configure the shared directory and expose it through the targets CAS interface.

shared_cache()
Configure a shared filesystem cache
shared_repository() shared_cas_upload() shared_cas_download() shared_cas_exists() shared_cas_list()
Use the shared backend through the public targets CAS interface

Inputs and context

Declare what the computation depends on beyond its code.

shared_context()
Snapshot declared external computation state
shared_file()
Give a file input an immutable content identity
`[`(<tarshare_file>) `[[`(<tarshare_file>) c(<tarshare_file>) `[<-`(<tarshare_file>) `[[<-`(<tarshare_file>) `length<-`(<tarshare_file>)
Manipulate immutable file descriptors
shared_path()
Locate an output within the current shared computation

Retention and maintenance

Who holds a result, and how unreferenced data is removed.

shared_owner()
Identify a retention owner
shared_references() shared_retain() shared_release()
Retain and release shared results
shared_gc()
Preview or collect unreferenced cache data