Skip to content
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

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

Open
hjnnjh opened this issue Dec 3, 2023 · 3 comments
Open

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

hjnnjh opened this issue Dec 3, 2023 · 3 comments

Comments

@hjnnjh
Copy link

hjnnjh commented Dec 3, 2023

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
Copy link
Author

hjnnjh commented Dec 3, 2023

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

@ManuelHentschel
Copy link
Owner

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)
}

@hjnnjh
Copy link
Author

hjnnjh commented Dec 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants