-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot show output after running cell in R notebook with trailing comment #707
Comments
Can you please share a little more information about the file you're running and the version of R you're using? Do you mean an R Markdown file? Or R cells in a Jupyter notebook? |
Hmmm, we can't reproduce this problem on Windows or other OSes.
|
R4.3.2 [R] *** Log started at Sun 14/07/2024 18:07:40.80 For a full list of these datasets, type library(help = "datasets")library(datasets) |
For me locally, where something like
In these logs from @williamcplai where it is not working correctly, we see steps 1 through 5 that look correct, but then there is no |
I think this is an ARK bug. Executing code that has a trailing comment when using 'stop' runtime behavior stops the If I then shutdown the kernel, I see this backtrace:
DetailsIf I run an R notebook cell with code But if I add a trailing comment, the output doesn't show: The console handles the trailing comment fine. The only difference that I see between console and notebook is that the notebook uses 'stop' runtime behavior and the console uses 'continue'. I'm not sure why the console uses 'continue', I would've thought that 'stop' is more intuitive – maybe it's a Python vs R thing? |
Ah thank you so much @seeM! We'll get this planned for fixes in ark. @williamcplai for a short term workaround, you could avoid trailing comments, so remove |
Also reported in posit-dev/positron#4789. |
We have a guess that we are doing autobracing like |
Type: Bug
cannot show output after running cell in R notebook
how to configure ?
VS Code version: Positron 1.90.0 (d8da3ec9581aa7bcb9726babedacff4e3d528503, 2024-07-05T03:18:37.706Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
The text was updated successfully, but these errors were encountered: