httpgd
fully supports RStudio:
To open a client in the embedded RStudio Viewer
-tab call hgd_view()
after starting the server:
library(httpgd) hgd() hgd_view()
To view a client in an external browser window call:
# hgd() hgd_browse()
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:
> dev.list() RStudioGD agg_png httpgd 2 3 4
This can be easily solved by closing the current (RStudioGD) graphics device:
> dev.off() httpgd 4
After that dev.list()
should only show a httpgd
device:
> dev.list() httpgd 4
The problem should not reappear afterwards, even after resizing the pane.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.