Clones a remote datom repository and returns a connection. This is the
recommended way for teammates to join an existing datom project — it wraps
git2r::clone() and immediately returns a ready-to-use datom_conn.
Arguments
- path
Local path to clone into.
- store
A
datom_storeobject (fromdatom_store()). Must havedata_repo_urlset and role"developer"(i.e.,github_patprovided).- ...
Additional arguments passed to
git2r::clone().
Details
When store$gov_repo_url is set the governance repo is also cloned (or
verified if it already exists locally). An existing clone with uncommitted
changes causes an error to avoid surprising state.
Examples
if (FALSE) { # \dontrun{
conn <- datom_clone(
path = "study_001_data",
store = my_store
)
datom_pull(conn)
} # }