| random_port | R Documentation |
Find an available TCP port, starting with port, then sampling from
3000–8000 (excluding ports known to be blocked by Chrome).
random_port(port = 4321L, n = 20L, exclude = NULL, error = TRUE)
port |
Default port to try first. |
n |
Number of additional random ports to try. |
exclude |
Integer vector of ports to exclude from the search. |
error |
Whether to signal an error (default) or return |
An integer port number. When error = TRUE (default), signals an
error if no port is found; when error = FALSE, returns NULL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.