vscode-R
vscode-R copied to clipboard
Executable code is not run
Describe the bug I have found some problems running code with many parentheses, there the code is not executed as expected. I have found a question on stackoverflow describing a similar problem.
https://stackoverflow.com/questions/71410887/vscode-radian-does-not-run-the-code-sometimes
To Reproduce For example try to run this example from the package DiagrammaR in Rstudio and in VScode. The code is executed in Rstudio but not in VScode
library(DiagrammeR)
grViz("
digraph nicegraph {
# graph, node, and edge definitions
graph [compound = true, nodesep = .5, ranksep = .25,
color = crimson]
node [fontname = Helvetica, fontcolor = darkslategray,
shape = rectangle, fixedsize = true, width = 1,
color = darkslategray]
edge [color = grey, arrowhead = none, arrowtail = none]
# subgraph for R information
subgraph cluster0 {
node [fixedsize = true, width = 3]
'@@1-1' -> '@@1-2' -> '@@1-3' -> '@@1-4'
'@@1-4' -> '@@1-5' -> '@@1-6' -> '@@1-7'
}
# subgraph for RStudio information
subgraph cluster1 {
node [fixedsize = true, width = 3]
'@@2' -> '@@3'
}
Information [width = 1.5]
Information -> R
Information -> RStudio
R -> '@@1-1' [lhead = cluster0]
RStudio -> '@@2' [lhead = cluster1]
}
")
Do you want to fix by self? (We hope your help!)
No
I have found a couple of the bugs reports to be somewhat similar. This fix works almost.
This issue is stale because it has been open for 365 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.