Skip to contents

Reads .mergin/mergin.json and returns the full project name as namespace/project. Handles the three metadata formats found in the wild (verified across the ~/Projects/gis fleet, 2026-07): a combined name = "namespace/project"; a bare name plus a separate namespace key; and the current client's bare name plus a workspace object whose name is the namespace.

Usage

rfp_mergin_project_name(path)

Arguments

path

Character. Path to the local Mergin project directory.

Value

Character scalar, e.g. "newgraph/restoration_wedzin_kwa".

Examples

if (FALSE) { # \dontrun{
rfp_mergin_project_name("~/Projects/gis/restoration_wedzin_kwa")
} # }