Closed jooyoungseo closed 2 years ago
If you are using httpgd within vscode-R, then using options(vsc.use_httpgd = TRUE)
will reveal the plot viewer when the plot is updated.
Yes, I use that option in VSCode, but for some complicated reason, I need to use external browser instead of the VScode plot panel.
If you have to use an external browser, then I guess it might not make sense to open a new window whenever the plot is updated. The plot does not know there might be already an existing window.
Closing this for now, if you have any further questions or feature requests please respond and I will reopen.
The plot panel does not work for me. I am using VSCODE to ssh into a remote server. I checked the option "Use Httpgd" in the settings, and also added "options(vsc.use_httpgd = TRUE)" to my .Rprofile. However, the plots still go to x11().
Please, do you have any ideas?
@VitorAguiar Is httpgd installed on the R you are connecting to via ssh? What is the path and complete contents of the Rprofile?
In short, you are setting something up wrong.
Yes, httpgd is installed In the remote machine. My .Rprofile is located in my home directory, and it has nothing but: options(vsc.use_httpgd = TRUE)
Ah, it works if instead of opening a terminal, I open an R terminal.
Although it still doesn't work if I'm on a Slurm interactive job. In that case, the plots go to a Rplots.pdf file. But that is probably a config issue in the remote server?
I was wondering if there would be recommended way to replace the default plot device with
httpgd
.As I want to have plots open in my external browser automatically, I added the following to my
.Rprofile
:However, the issue is that it opens browser only one time and does not open again once I close the browser windows.
Let me give you an example below:
Do you have any advice?