hgd_url {httpgd} | R Documentation |
httpgd URL.
Description
Generate URLs to the plot viewer or to plot SVGs.
This function will only work after starting a device with hgd()
.
Usage
hgd_url(
endpoint = "live",
which = dev.cur(),
host = NA,
port = NA,
explicit = FALSE,
omit_token = FALSE,
...
)
Arguments
endpoint |
API endpoint. The default, |
which |
Which device (ID). |
host |
Replaces hostname. |
port |
Replaces port. |
explicit |
Ads |
omit_token |
Should the security token be omitted from the URL. |
... |
Other query parameters that will be appended to the URL. |
Details
Note: If the included client is used set websockets=0
or
sidebar=0
to turn off WebSocket or plot history sidebar.
Value
URL.
Examples
## Not run:
hgd()
my_url <- hgd_url()
hgd_url(0)
hgd_url(plot_id(), width = 800, height = 600)
dev.off()
## End(Not run)
[Package httpgd version 2.0.2 Index]