VSCode-R-Debugger icon indicating copy to clipboard operation
VSCode-R-Debugger copied to clipboard

Can't view data and print figures at the same time.

Open hjnnjh opened this issue 1 year ago • 3 comments

I just add a .Rprofile according to this. I can view data in vscode now. However, the function of printing figures vanished. Before adding the .Rprofile, Quartz will provide the function to show figures but I can't view data via X11. The X11 support of my R seems incomplete because I installed R via brew. BTW, I' m using httpgd to show figures in vscode. May I ask why there is such a problem? Is there a way to fix this? image

hjnnjh avatar Dec 03 '23 17:12 hjnnjh

Maybe reinstall R from CRAN is an alternative way to solve this problem.

hjnnjh avatar Dec 03 '23 17:12 hjnnjh

From personal experience, this extension does not work well with httpgd + vscode-R. In my personal .Rprofile I have therefore disabled httpgd in debug sessions:

if(Sys.getenv('VSCODE_DEBUG_SESSION')=='1'){
	options(vsc.plot = FALSE)
	options(vsc.use_httpgd = FALSE)
}

ManuelHentschel avatar Dec 06 '23 15:12 ManuelHentschel

From personal experience, this extension does not work well with httpgd + vscode-R. In my personal .Rprofile I have therefore disabled httpgd in debug sessions:

if(Sys.getenv('VSCODE_DEBUG_SESSION')=='1'){
	options(vsc.plot = FALSE)
	options(vsc.use_httpgd = FALSE)
}

Thanks for your reply! I solved this problem by adding it to my .Rprofile.

hjnnjh avatar Dec 09 '23 07:12 hjnnjh