Learn R Programming

pensar (version 0.4.2)

lint: Vault lint

Description

Health check for a pensar vault. Vault health check

Scans the vault for orphan pages (no incoming wikilinks), broken wikilinks (pointing to nonexistent pages), and tag clusters with no wiki synthesis.

Usage

lint(vault = default_vault(), min_cluster_size = 3L)

Value

A list with class pensar_lint.

Arguments

vault

Path to the vault directory.

min_cluster_size

Minimum number of raw pages sharing a tag to suggest a wiki page. Default 3.

Examples

Run this code
v <- tempfile("vault-")
init_vault(v, rproj = FALSE, agent_instructions = FALSE)
ingest("Refers to [[absent]].", type = "articles", source = "demo",
       vault = v)
lint(v)
unlink(v, recursive = TRUE)

Run the code above in your browser using DataLab