Vignette: Develop an R package with btw

Open
#233 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
r
Domain
documentation

Research direction

Review the current implementation and existing documentation, including the configuration, agents, tasks, CLI, and MCP material referenced in the issue. Choose a small reproducible fixture and one primary interface, then verify that the vignette demonstrates the test-to-review workflow with executable examples, relevant checks, and explicit human approval.

Written by the indexing model from the issue text.

Description

documentation

Priority

Lower priority than the focused context, tasks, CLI, and skills vignettes. This is a synthesis article that brings several package capabilities together.

Goal and audience

Show R package developers how btw supports a test → diagnose → edit → verify → review workflow. Use a small package with a reproducible failing test rather than an open-ended request to fix an arbitrary package.

The destination is a verified, reviewable change, not merely generated code.

Proposed coverage — reassess before drafting

This is a starting proposal, not a fixed outline or required section order. Before writing, reassess the scope, example, and teaching sequence against the current implementation, existing documentation, and reader needs. Adjust, combine, or drop items as appropriate.

  • Configure a project chat with documentation, file, and package-development tools.
  • Run a focused test and interpret the results.
  • Inspect relevant source and documentation before making a change.
  • Apply a focused edit and rerun the test.
  • Regenerate documentation where appropriate and run a package check.
  • Inspect the diff and distinguish verified results from the assistant's claims.
  • Optionally delegate an independent review to a custom agent.
  • Keep human approval of the result explicit.

Suggested boundaries

Avoid a general package-development course or an elaborate multi-agent team. Link to configuration, agents, tasks, CLI, and MCP material where appropriate rather than reteaching them. Choose one primary interface for the workflow before writing instead of attempting parallel walkthroughs of every entry point.

Writing guidance

Use a small, reproducible fixture and verify the failure/correction loop. Explain the responsibilities and side effects of the selected tools. Render executable examples in a fresh session, mark provider-dependent interactions appropriately, and do not invent model output or claim that a generated change was verified without running the relevant checks.

Dominant language
R
Stars
150
Forks
13
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/btw

All issues in posit-dev/btw

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.