quarto-dev / quarto-dev/quarto-r

usethis like functions for add a chapter, or add appendix or other situations

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

Nobody has claimed this yet.

enhancement
Dominant language
R
Stars
161
Forks
29
Avg merge
3h 18m
Merged PRs (30d)
1

Description

usethis like functions for add a chapter, or add appendix or other situations where some boilerplate needs to be added to the _quarto.yml and then you need to create a new .qmd with the same title.

It would also be nice if there were usethis like functions for add a chapter, or add appendix or other situations where some boilerplate needs to be added to the _quarto.yml and then you need to create a new .qmd with the same title.

eg:
add_chapter(name, .before, .after) could add name.qmd to the _quarto.yml file at the end of existing chapters or optionally before or after an existing one and then create and open name.qmd.

Originally posted by @see24 in https://github.com/quarto-dev/quarto-r/issues/87#issuecomment-1761564229

Contributor guide

Open the contributing guide

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.

Research direction

Start with the proposed add_chapter(name, .before, .after) behavior and how _quarto.yml lists chapters or appendices. Define the expected handling of insertion before or after an existing entry, creation of the matching name.qmd file, and opening it; the work is done when these cases and other boilerplate additions have a decided scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.