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)
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] 57985
if (requireNamespace("parallelly", quietly = TRUE)) {
tar_random_port()
}
#> [1] 56875