I recently installed the Quarto extension in VS Code and have noticed that plot() and View() won't work from an R terminal after I have knit a .qmd document. When I knit a .qmd document I notice that neither the current Quarto terminal, nor the current R terminal are attached to my VS Code session (the .qmd knits fine though):
I should be able to "click to attach" as shown in the image, or issue the command .vsc.attach() to attach the R terminal, but this does not work. The terminals won't attach. As a workaround I've discovered I can open a new R terminal in VS Code that will automatically attach itself to my VS Code session, then close any other terminal instances of R, and then magically the Quarto terminal will attach itself to my current VS Code session and I am able to plot() and View() again from the R terminal.
After knitr creates my Quarto document why won't the Quarto terminal attach itself to R?
Environment
OS: Ubuntu Linux 24.04
R version 4.4.0
VS Code: version 1.89.1
REditorSupport VS Code Extension: version 2024-05-18
Quarto VS Code Extension: version 2024-05-23
I'm using the default terminal, I'm not using radian
I recently installed the Quarto extension in VS Code and have noticed that
plot()
andView()
won't work from an R terminal after I have knit a .qmd document. When I knit a .qmd document I notice that neither the current Quarto terminal, nor the current R terminal are attached to my VS Code session (the .qmd knits fine though):I should be able to "click to attach" as shown in the image, or issue the command
.vsc.attach()
to attach the R terminal, but this does not work. The terminals won't attach. As a workaround I've discovered I can open a new R terminal in VS Code that will automatically attach itself to my VS Code session, then close any other terminal instances of R, and then magically the Quarto terminal will attach itself to my current VS Code session and I am able toplot()
andView()
again from the R terminal.After knitr creates my Quarto document why won't the Quarto terminal attach itself to R?
Environment