Not a user-side function. Exported for infrastructure purposes only.
Not a user-side function. Exported for infrastructure purposes only.
Usage
tar_random_port(lower = 49152L, upper = 65355L)
tar_random_port(lower = 49152L, upper = 65355L)
Arguments
- lower
Integer of length 1, lowest possible port.
- upper
Integer of length 1, highest possible port.
Value
A random port not likely to be used by another process.
A random port not likely to be used by another process.
Examples
if (requireNamespace("parallelly", quietly = TRUE)) {
tar_random_port()
}
#> [1] 53513
if (requireNamespace("parallelly", quietly = TRUE)) {
tar_random_port()
}
#> [1] 64279