A classical review with explicit provenance
Source:vignettes/classical-review.Rmd
classical-review.RmdThis article uses a fictional gait-training review. Offline values are labelled teaching fixtures. The live acceptance scripts reconstruct the complete graph over HTTP with three separately assigned accounts; they test software separation, not human research quality.
A protocol separates the clinical question from the discovery question. It names every source and exclusion code before screening.
library(reviewStudioR)
protocol <- rs_protocol(
title = "Fictional gait training", mode = "classical", backward = "one_pass",
cutoff = "2021-12-31", narrow = "Trials of gait training",
broad = "Gait rehabilitation",
seed_rule = "Inspect originals, companions and overlapping reviews",
synthesis = "Walking speed", sources = "Direct\nForward\nUpdate",
reasons = "Secondary review|Wrong design", members = c("first", "second")
)In a live session, the lead creates the project and registers each search with its exact query, platform, date and source. rs_import_file() retains original CSV, RIS, NBIB or BibTeX bytes. rs_finish_run() reconciles source occurrences with the reported total. One report appearing twice contributes two occurrences and one report.
# Opt-in commands for an authorized live service:
client <- rs_connect("http://127.0.0.1:8020", Sys.getenv("REVIEW_TOKEN"))
pid <- rs_create_project(client, protocol)$id
snapshot <- rs_project_state(client, pid)
rs_register_run(client, pid, id = "D", source = "Direct",
platform = "Fictional index", query = "gait", date = "2022-01-03",
phase = "direct", revision = rs_metadata(snapshot)$revision)Two reviewers vote independently on original contribution and citation-seed eligibility at title/abstract and full text. Their first votes remain masked. Retrieval is recorded separately. A conflicting pair requires an eligible third person. Eligible reports are linked to studies using identity evidence; a different lead confirms the proposed link.
The offline snapshot contains two constructed reports:
x <- rs_example()
rs_data(x)[, c("report", "title")]## report title
## 1 A1 Fictional trial A
## 2 R Fictional source review
rs_metadata(x)$provenance## [1] "Constructed offline fixture; no empirical review was run."
For one-pass discovery, freeze the common baseline and inspect every required list from eligible baseline seeds. The backend creates bibliography and supplement obligations and an included-study list for eligible reviews. New targets are screened and linked, but they do not generate another expansion layer. In the complete synthetic HTTP replay, study A is found; the companion report remains part of A.
With backward = “none”, all seed votes must be “no”; classical completion needs no RSR forward-freeze operation. The live test closes this branch after source reconciliation, screening and linkage.
After closure, extraction drafts preserve study, report, component, comparison, outcome, visit, population, field, units and source anchors. Reported, measured_unavailable, unmeasured and unknown are distinct. A numerical zero is retained. A different reviewer verifies a draft. Superseding corrections preserve history and verified-only projections retain the current accepted row.
Incomplete retrieval cannot be silently promoted to complete. Closure records complete, with_documented_gaps or truncated according to backend obligations. Amendments create a new version with lineage and a fresh screen.