nx10 / httpgd

Asynchronous http server graphics device for R.
https://nx10.github.io/httpgd
GNU General Public License v2.0
377 stars 19 forks source link

HGD bg option #45

Closed ElianHugh closed 3 years ago

ElianHugh commented 3 years ago

Hi there,

I've been trying to use the bg option for hgd(), but it doesn't seem to be affecting the colour of the viewer from what I can tell.

E.g. httpgd::hgd(bg = "blue", silent = TRUE) .vsc.browser(httpgd::hgd_url(), "R Plots", viewer = "Beside")

^ here, the viewer still uses a white background

Am I using this correctly? Thanks!

renkun-ken commented 3 years ago

In a vanilla R, httpgd::hgd(bg = "blue") does not seem to respect bg="blue" at all.

nx10 commented 3 years ago

Thank you for reporting this bug. Should be fixed now.

Seems like this broke a while ago, I have started working on the graphical unit tests (#41) to prevent something like this in the future.