In IPython notebooks, code cell outputs display any object returned by the last line of code in the block.
In the Jupyter IRkernel, response objects are displayed from each response generating line of code:
In the jupyterlite-webr-kernel, we seem to follow the behaviour of the IPython kernel rather than the IRkernel:
As does the xeus R kernel:
Does the webr kernel return the multiple values, so that they could all be displayed, as per the IRkernel model, or does it just return the final value?
Actually, is the IRkernel displaying values as they are returned, rather than returning a result from the code cell? IRkernel behaviour described here: IRkernel/IRkernel#225 Seems like the IRkernel folk are maybe doing something atypical...