Skip to contents

The R package is independent of the service installation. Use a compatible Review Studio backend provided by your research team. The service owns private SQLite databases, original documents and account digests; no R library is mounted into it.

client <- reviewStudioR::rs_connect(
  "http://127.0.0.1:8020", Sys.getenv("REVIEW_TOKEN"))
reviewStudioR::rs_health(client)
reviewStudioR::run_review_studio("http://127.0.0.1:8020")

With a remote host, use an approved HTTPS origin or an SSH loopback tunnel:

ssh -N -L 8020:127.0.0.1:8020 your-review-host

From the separately supplied backend source, retain an explicit Compose project name and the exact configuration files for every operation:

docker compose -p reviewstudio -f compose.yaml -f runtime/overlay.json config --quiet
docker compose -p reviewstudio -f compose.yaml -f runtime/overlay.json up --build -d --wait
docker compose -p reviewstudio -f compose.yaml -f runtime/overlay.json logs --tail 100 app worker
docker compose -p reviewstudio -f compose.yaml -f runtime/overlay.json stop
docker compose -p reviewstudio -f compose.yaml -f runtime/overlay.json start --wait

The overlay must bind the deployment’s account-digest directory read-only at /config, and app/worker must share the same named data volume. Keep raw tokens in an operator-only file. Assign each reviewer a different account and add them to the project. Preserve account IDs when rotating credentials; use the backend’s account generator or audited account-management tool without replacing other accounts. Do not print or commit raw credentials.

For a new host, verify loopback publishing, non-root UID 10001, read-only container root, separate worker, health and inherited CPU restrictions. The default profile is manual/CPU. GPU inference needs an approved digest-pinned image, compatible runtime, locally provisioned weights and separately measured context capacity. Cloud routing needs the explicit cloud overlay, approved endpoint and both protocol- and report-specific rights. The browser never needs provider keys.

Pause service writes and worker dispatch before a consistent cross-project backup. Run the backend’s tools/backup.py backup against the data volume, then restore to a fresh directory/volume with tools/backup.py restore. Preserve original documents and accounts separately. Check restored event heads before switching storage. Do not use down –volumes on a production deployment.

PDF uploads retain original bytes, hashes and immutable parser indexes. Inspect the rendered page alongside its indexed lines or cells. OCR and missing-text states remain visible. Exact anchors include asset, page, anchor ID and excerpt. For unsupported images or ambiguous OCR, record a manual source location and exact excerpt. A missing value in supplied pages does not mean the whole document lacks it.

job <- reviewStudioR::rs_assist(client, pid, task = "extract",
  report = report_id, route = "local", asset = asset_id,
  field = field_id, target = "Registered comparison, population and visit",
  start = 1, end = 2)
reviewStudioR::rs_wait_job(client, pid, job$job, timeout = 120)

The result is a suggestion. A researcher saves a draft and another verifies it against the evidence. The UI polls only the active job with a deadline; timeout does not cancel server work.

reviewStudioR::rs_download_release(client, pid, "internal-review.zip")
reviewStudioR::rs_verify_release("internal-review.zip", event_chain = TRUE)

The internal release can contain identities, licensed excerpts and stored prompts. Manifest-only checking and canonical event-chain checking are separately reported. The verifier rejects unsafe paths and duplicate archive members before reading them.