Why reactable is not working with print() in Quarto #2695
-
While Reprex
Though there's no specific reason to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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.
The general rule is that More on this in https://bookdown.org/yihui/rmarkdown-cookbook/opts-render.html and https://cran.r-project.org/web/packages/knitr/vignettes/knit_print.html Hope it helps understand |
Beta Was this translation helpful? Give feedback.
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 theknit_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…