Open pawelru opened 9 months ago
It might ba an app with if (interactive())
. You are running the tests interactively.
That was also my guess but no. These are the erroneous lines and no shiny in there: https://github.com/insightsengineering/teal.widgets/blob/e59ba815781604af411ac6c88ed96d5acbfa49a2/tests/testthat/test-plot_with_settings.R#L62-L94
Using debugger I managed to find that it's grDevices::dev.off()
executed on exit from is_draw()
:
After temp removing this line, the second call to grDevices::graphics.off()
also freezes the session
Found a workaround but this is still an issue. In VSCode, turn off r.plot.useHttpgd
setting
It doesn't freeze on rstudio nor on the console
Is the r.plot.useHttpgd
defined via R's options()
or via vscode's GUI?
We could force change that option for a set of affected tests or globally if it makes sense
for me also it does not freeze on Rstudio
It doesn't freeze on rstudio nor on the console
Sounds like an IDE issue.
The issue is here. Below line freezes R
This does work in CI (and CRAN checks) but it does not work locally which is very frustrating. It might be due to the fact that I am using VSCode which has its own engine for graphics