| freePort | R Documentation |
Find a TCP port that can be opened
freePort(ports = 1024:65535, default = "random", randomize = TRUE)
ports |
(integer vector, or character string)
Zero or more TCP ports in [0, 65535] to scan.
If |
default |
(integer) |
randomize |
(logical) If TRUE, |
Returns an integer representing the first port among ports that
can be opened. If none can be opened, then default is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.