rrp_project_status: Summarize an RRP project's retained history

View source: R/project-inspection.R

rrp_project_statusR Documentation

Summarize an RRP project's retained history

Description

Read project identity and completed-run status without sourcing the project's analytical scripts, executing an assessment, or changing state. This also works before analytical state has been initialized.

Usage

rrp_project_status(path)

Arguments

path

Path to an existing RRP project directory.

Details

The latest run is the most recently recorded completed run by created_at, not the largest analytical as_of_time. Ties in recorded creation time are broken by run_id. Reads use a read-only connection and do not initialize state.

Value

An ordinary named list containing character project_id, logical state_initialized, integer run_count, character latest_run_id, and UTC POSIXct latest_as_of_time. The latest fields are typed missing values when there are no runs.

Examples

project <- tempfile("rrp-status-")
rrp_project_init(project, "example-rrp")
rrp_project_status(project)
unlink(project, recursive = TRUE)

readmit documentation built on Nov. 4, 2026, 1:15 a.m.