Skip to content
Discussion options

You must be logged in to vote

This is not specific to Quarto, it will be exactly the same with rmarkdown. This is due to the way knitr is working - knitr being the R package used for handling R code chunks within a Quarto document using R.

knitr::knit_print() will be the function used for printing, and method used depends on the object class. For reactable, I believe htmlwidgets methods will be used. print() will not return a printable object for knitr - only the knit_print() method will.

The general rule is that print() should rarely be called directly in a code chunk as usually we won't know how to handle the printing for inside a knitting.

More on this in https://bookdown.org/yihui/rmarkdown-cookbook/opts-render.html

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shafayetShafee
Comment options

Answer selected by shafayetShafee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants