httpgd fully supports RStudio:
To open a client in the embedded RStudio Viewer-tab call
hgd_view() after starting the server:
To view a client in an external browser window call:
Sometimes (if the Viewer-tab is resized with any plot in
the Plots-tab) RStudio will activate its own graphics
device, the Plots-tab will obtain focus, and
httpgd will show the message “Device inactive.” in
the Viewer-tab.
The list of graphics devices (dev.list()) will look
something like this:
This can be easily solved by closing the current (RStudioGD) graphics device:
After that dev.list() should only show a
httpgd device:
The problem should not reappear afterwards, even after resizing the pane.