Skip to contents

Convenience wrapper that runs rfp_mergin_pull() followed by rfp_mergin_push(). Returns the new project version after the push.

Usage

rfp_mergin_sync(path)

Arguments

path

Character. Path to the local Mergin project directory.

Value

Invisible character — the new project version after the push, or NA_character_ if parsing failed. The raw push output is available as attr(result, "output").

Examples

if (FALSE) { # \dontrun{
rfp_mergin_status("~/Projects/gis/restoration_wedzin_kwa")
version <- rfp_mergin_sync("~/Projects/gis/restoration_wedzin_kwa")
cat("Synced to", version, "\n")
} # }