You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the chunk option has collapse = TRUE and any htmlwidget (including one from rgl) is displayed there, then code and output following the widget will not be formatted properly.
Problematically, the rmarkdown::html_vignette template defaults to collapse = TRUE.
This is a knitr issue, fixed in yihui/knitr#2212. That fix is included in knitr version 1.42.3, currently only on Github. You can install it with
remotes::install_github("yihui/knitr")
The text was updated successfully, but these errors were encountered:
A workaround if you want collapse = TRUE is to end any chunk at the point where it shows an rgl (or other htmlwidget) display, and start a new chunk afterwards. For example, change this:
Another workaround is to use chunk option fig.show = "hold", which will display all the rgl figures after the chunk, instead of showing them as they are completed. For example,
If the chunk option has
collapse = TRUE
and any htmlwidget (including one from rgl) is displayed there, then code and output following the widget will not be formatted properly.Problematically, the
rmarkdown::html_vignette
template defaults tocollapse = TRUE
.This is a
knitr
issue, fixed in yihui/knitr#2212. That fix is included inknitr
version 1.42.3, currently only on Github. You can install it withThe text was updated successfully, but these errors were encountered: