Skip to contents

Loads the config.yml written by init_project() and returns it as a markermd_project object. Errors if the directory has not been initialized.

Usage

project_config(project = ".")

Arguments

project

Path to the project directory. Defaults to the working directory.

Value

A markermd_project object.

Examples

src = system.file("examples/test_assignment", package = "markermd")
project = fs::dir_copy(src, fs::file_temp("markermd_example_"))
init_project(project)
#> ✔ Initialized markermd project at /tmp/Rtmpsvxzc1/markermd_example_1a484912b3ee
#> • database: .markermd/markermd.sqlite (created)
#> • skills (claude): markermd-apply-rubric, markermd-check-injection,
#>   markermd-fix-parsing, markermd-scaffold-rubric, markermd-scaffold-template
#>   (.claude/skills/)
#> • skills (codex): markermd-apply-rubric, markermd-check-injection,
#>   markermd-fix-parsing, markermd-scaffold-rubric, markermd-scaffold-template
#>   (.agents/skills/)
#> • instructions: CLAUDE.md (created), AGENTS.md (created)
#> • repos: repos/
#> • comments: not found
#> • key: hw3-key
#> • artifacts: html

project_config(project)
#> 
#> ── markermd project ────────────────────────────────────────────────────────────
#> root: /tmp/Rtmpsvxzc1/markermd_example_1a484912b3ee
#> version: 1.0
#> created: 2026-11-10 18:43:36
#> updated: 2026-11-10 18:43:36
#> 
#> ── Locations ──
#> 
#> • repos: repos (5 repos)
#> • comments: not found
#> • key: hw3-key (present)
#> • artifacts: html
#> • database: .markermd/markermd.sqlite (present)
#> • template: not set
#> 
#> ── Snapshots ──
#> 
#>   • none yet (`snapshot_create()` takes one)