Closed
Description
The first Positron-related issue!
In Positron (but not VS Code, weirdly), {tinytable} tables don't appear in the preview window and instead cause an error:
Error:
! Function viewer not found in RStudio
Hide Traceback
▆
1. ├─methods (local) `<stndrdGn>`(`<tinytabl[,5]>`)
2. └─tinytable (local) `<stndrdGn>`(`<tinytabl[,5]>`)
3. └─tinytable:::print.tinytable(...)
4. └─rstudioapi::viewer(htmlFile)
5. └─rstudioapi::callFun("viewer", url, height = height)
Here's a reprex:
This works
```{r}
library(gt)
mtcars[1:5, 1:5] |>
gt()
```
This doesn't :(
```{r}
library(tinytable)
mtcars[1:5, 1:5] |>
tt()
```

It seems like print.tinytable()
is trying to use rstudioapi::viewer()
inside Positron? In VS Code, print.tinytable()
doesn't try to use {rstudioapi} and instead shows the table in the Viewer tab, as expected:

Metadata
Metadata
Assignees
Labels
No labels