Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show R graph from visual studio code

I installed extension for R language https://marketplace.visualstudio.com/items?itemName=Ikuyadeu.r

When i run my R code in visual studio code with (ctrl + enter) i get empty window instead of graph image.

enter image description here

but in visual studio 2017 it works

enter image description here

like image 388
Muflix Avatar asked Sep 11 '18 21:09

Muflix


People also ask

How do you show plots in R?

Menu “View” > “Show Plots”.

How do you show VS Code on a graph?

Navigation. Move cursor onto function/class/variable name in Visual Studio Text Editor, then press Alt+F to show it on Code Graph.

Is VS Code good for R?

VS Code is a popular development environment that now has very good support for R via some extensions. I've only used VS Code for a short time so am not an expert, but here is a quick summary of how I got it set up.


1 Answers

Please try the latest vscode-R Session Watcher. Plot, htmlwidgets, shinyapps, View(data.frame), help documentation, etc. all can be shown in VSCode.

like image 137
Kun Ren Avatar answered Oct 01 '22 04:10

Kun Ren