Skip to contents

Upload local changes to the Mergin Maps server. Wraps mergin push from the mergin-client CLI. Always rfp_mergin_pull() first to avoid conflicts.

Usage

rfp_mergin_push(path)

Arguments

path

Character. Path to the local Mergin project directory.

Value

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

Details

Returns the new project version (e.g., "v123") parsed from the push output. The raw push output is attached as an output attribute for debugging.

Examples

if (FALSE) { # \dontrun{
version <- rfp_mergin_push("~/Projects/gis/restoration_wedzin_kwa")
cat("Pushed", version, "\n")

# Inspect raw output if something went wrong
attr(version, "output")
} # }