vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

httpgd not showing plots and plot do not show up on show viewers

Open felipedalton opened this issue 2 years ago • 8 comments

Describe the bug I've installed the httpgd package and made the main settings changes like "r.plot.useHttpgd": true and added options(vsc.use_httpgd = TRUE) to my Rprofile but plots are neither showing up or seem to be ploted anywhere (using RPlot: Show viewers or httpgd::hgd_view()

To Reproduce Install R, languageserver, radian, httpgd, R VS Code extension, added radian path to rmac and added settings and Rprofile changes for httpgd to be used instead of PNG. Then attempted top plot any example hist(rnorm(100))

Can you fix this issue by yourself? (We appreciate the help) No

Expected behavior plots showing up in R Plot view

Environment (please complete the following information):

  • OS: macOS Sonoma
  • VSCode Version: 1.84.2
  • R Version: 4.3.2
  • vscode-R version: 2.8.2

felipedalton avatar Nov 27 '23 20:11 felipedalton

See https://github.com/randy3k/radian/issues/446

Cross reference: https://github.com/REditorSupport/vscode-R/issues/1447

benz0li avatar Nov 27 '23 21:11 benz0li

thanks @benz0li so if i just remove radian path from rmac i should be good to go? Do you know if there are any plans to tackle this issue from radian?

felipedalton avatar Nov 27 '23 22:11 felipedalton

Just removed the path and it worked! Hopefully we can go back to using it again in the future

felipedalton avatar Nov 27 '23 22:11 felipedalton

thanks @benz0li so if i just remove radian path from rmac i should be good to go?

That is one way dealing with this issue: Using standard R.

Do you know if there are any plans to tackle this issue from radian?

Yes: Downgrade to prompt-toolkit==3.0.39, i.e. pip install --force-reinstall prompt-toolkit==3.0.39 after you have installed everything else.

benz0li avatar Nov 28 '23 06:11 benz0li

radian v0.6.9 is out which resolves this issue.

benz0li avatar Nov 28 '23 10:11 benz0li

@benz0li I've just reinstalled radian and httpgd package but it seems it is not plotting still, do you know if this new version was already deployed?

felipedalton avatar Nov 28 '23 21:11 felipedalton

@benz0li I've just reinstalled radian and httpgd package but it seems it is not plotting still, do you know if this new version was already deployed?

https://pypi.org/project/radian/

benz0li avatar Nov 29 '23 07:11 benz0li

that's strange I've just reinstalled radian, httpgd, changed vsc.use_httpgd to TRUE and still got no response

felipedalton avatar Nov 29 '23 15:11 felipedalton