rrp_state_init: Initialize persistent history for an RRP project

View source: R/project-history.R

rrp_state_initR Documentation

Initialize persistent history for an RRP project

Description

Create state/history.duckdb and its empty runs and assessments tables for an existing project. This is separate from project creation and does not execute assessments or generate analytical products.

Usage

rrp_state_init(path)

Arguments

path

Path to an existing RRP project that passes structural validation.

Details

Initialization refuses to overwrite any existing ⁠state/⁠ directory. Project-authored scripts are loaded during structural validation, but their source-mapping and risk-provider functions are not called.

Value

The normalized project path, invisibly.

Examples

project <- tempfile("rrp-state-")
rrp_project_init(project, "example-rrp")
rrp_state_init(project)
unlink(project, recursive = TRUE)

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