[rgl](https://github.com/dmurdoch/rgl) plots work in RMarkdown using several low level hooks that are set up by the `rgl::setupKnitr()` function.  This doesn't work in quarto, presumably because things are implemented differently, though other `htmlwidgets`-using packages (e.g. `leaflet`) work fine.

I'm not sure if this requires changes to `rgl`, to `quarto`, or to both.

I've also started [an rgl issue](https://github.com/dmurdoch/rgl/issues/264).

Here's a sample RMarkdown document:

````
---
title: "Untitled"
output: html_document
---

```{r}
library(rgl)
setupKnitr(autoprint = TRUE)
```

```{r}
plot3d(1:10, 1:10, 1:10)
```
````

Here's the same thing as a Quarto document:

````
---
title: "Untitled"
format: html
editor: visual
---

This normally wouldn't be echoed:

```{r}
library(rgl)
setupKnitr(autoprint = TRUE)
```

rgl doesn't display:

```{r}
plot3d(1:10, 1:10, 1:10)
```
````
2022-08-10T19:26:10Z
dmurdoch
third-party
Future
closed
rgl plots don't display in quarto
https://github.com/quarto-dev/quarto-cli/issues/1800