I believe the paged_print option discussed here might do the trick for you. See below example.
---
title: "Tutorial"
output: learnr::tutorial
runtime: shiny_prerendered
---
` ``{r setup, include=FALSE}
library(learnr)
` ``
` ``{r mtcars-anova-kable, exercise=TRUE}
anova(lm(mpg ~ as.factor(gear), data = mtcars))
` ``
` ``{r mtcars-anova-raw, exercise=TRUE, paged.print=FALSE}
anova(lm(mpg ~ as.factor(gear), data = mtcars))
` ``
Note: I added a space in the backticks for the r chunks so they would show up in the rendered response, so make sure to take them out when trying the code.