That said, for a Quarto book I'd recommend checking out quarto-live. It's essentially a version of learnr that doesn't require an R server, all of the exercises and computational environment run in the user's browser thanks to the magic of WASM. https://github.com/r-wasm/quarto-live
Comments
https://phiggins.quarto.pub/rmrwr-quarto/
https://github.com/r-wasm/quarto-live/issues/60