ThinkR-open / ThinkR-open/squash

fix: `quiet` & `debug` should be forwarded as is to `render_single_qmd()` then `quarto_render()`

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

Nobody has claimed this yet.

Dominant language
R
Stars
9
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Description

quarto_render() has both debug & quiet, but these params are not forwarded from compile_qmd_course() and render_single_qmd():

This is the current logic:

  • If quiet is FALSE in compile_qmd_course() then quiet is TRUE in quarto_render()
compile_qmd_course(quiet = FALSE, debug = FALSE) 
# then
render_single_qmd(quiet = !debug) # TRUE 
# then
quarto_render(quiet = TRUE)
  • If quiet is TRUE in compile_qmd_course() then quiet is FALSE in quarto_render()
compile_qmd_course(quiet = TRUE, debug = TRUE) 
# then
render_single_qmd(quiet = !debug) # FALSE 
# then
quarto_render(quiet = FALSE)

This behavior makes it hard to reason about the function logic.

Contributor guide

No contributing guide indexed for this repository

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 by locating compile_qmd_course(), render_single_qmd(), and quarto_render() and trace how quiet and debug are passed between them. Verify the corrected forwarding behavior for the combinations described in the issue, and confirm that the values received by quarto_render() match the values supplied to compile_qmd_course().

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.