Skip to contents

Runs a set of pass/fail checks on the dependencies rfp's mergin functions need: Python venv, mergin-client importable, pygeodiff importable, auth environment variables set, and (optionally) server reachable. Intended to be run before field deployments or when debugging a broken mergin workflow.

Usage

rfp_mergin_healthcheck(server = TRUE)

Arguments

server

Logical. If TRUE (default), additionally ping the Mergin server with current auth (no project required — uses client.server_version()). Set FALSE to skip network checks.

Value

Invisible logical. TRUE only when every attempted check passes. Checks skipped because a prerequisite failed (e.g. py_import when venv is missing) are counted as failures so the return value is honest.

Examples

if (FALSE) { # \dontrun{
rfp_mergin_healthcheck()
rfp_mergin_healthcheck(server = FALSE)
} # }