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.
The detection for
rlang::is_interactive()
treatsShelter.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 toShelter.captureR()
with little input. The scope of being interactive by default should be only applied when using theConsole
class.Related: https://github.com/coatless/quarto-webr/issues/206