Skip to content

Disable learnr exercise checker in R Markdown templates#187

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-exercise-checker-error
Draft

Disable learnr exercise checker in R Markdown templates#187
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-exercise-checker-error

Conversation

Copy link
Copy Markdown

Copilot AI commented Jan 15, 2026

knitr interprets chunk labels ending in -check as learnr exercise check chunks, requiring tutorial_options() configuration. This caused vignette builds to fail with: An exercise check chunk exists ('exonorm-check') but an exercise checker function is not configured.

Changes

  • Report templates: Added options(tutorial.exercise.checker = NULL) to setup chunks in inst/rmarkdown/index.Rmd and inst/rmarkdown/module.Rmd
  • Vignettes: Added setup chunks with the same option to vignettes/report.Rmd, vignettes/usage.Rmd, and vignettes/spatial.Rmd
```{r setup, include=FALSE}
# Disable tutorial exercise checking to prevent chunks ending in
# '-check' from being interpreted as learnr exercise check chunks
options(tutorial.exercise.checker = NULL)
knitr::opts_chunk$set(echo = TRUE)

This prevents knitr from activating learnr hooks for dynamically generated reports and vignettes.

<!-- START COPILOT CODING AGENT SUFFIX -->



<!-- START COPILOT ORIGINAL PROMPT -->



<details>

<summary>Original prompt</summary>

> Error in hook(params) : 
>   An exercise check chunk exists ('exonorm-check') but an exercise checker function is not configured for this tutorial. Please use `tutorial_options()` to define an `exercise.checker`.
> Calls: <Anonymous> ... process_group -> call_block -> as.strict_list -> hook
> 
> Quitting from 25_rnaseq.Rmd:979-984 [exonorm-check]
> Execution halted


</details>



<!-- START COPILOT CODING AGENT TIPS -->
---

✨ Let Copilot coding agent [set things up for you](https://github.com/dputhier/scigenex/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 15, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI and others added 2 commits January 15, 2026 19:57
Co-authored-by: dputhier <1831198+dputhier@users.noreply.github.com>
Co-authored-by: dputhier <1831198+dputhier@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix exercise checker configuration error in tutorial Disable learnr exercise checker in R Markdown templates Jan 15, 2026
Copilot AI requested a review from dputhier January 15, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants