r-wasm / webr

The statistical language R compiled to WebAssembly via Emscripten, for use in web browsers and Node.
https://docs.r-wasm.org/webr/latest/
Other
804 stars 54 forks source link

Set non-interactive flag when using `captureR()` #426

Closed coatless closed 2 weeks ago

coatless commented 1 month ago

The detection for rlang::is_interactive() treats Shelter.captureR() as being interactive. However, that doesn't make sense as the results may not be obtained interactively. There could be multiple one-shot calls to Shelter.captureR() with little input. The scope of being interactive by default should be only applied when using the Console class.

Related: https://github.com/coatless/quarto-webr/issues/206