knitr::opts_chunk$set(echo = TRUE)
netstat
allows you to easily view which TCP ports are in use and which are free to use.
# install.packages("netstat") library(netstat)
ports_in_use()
ports_in_use()
free_port()
free_port()
free_port()
returns an available TCP port from Internet Assigned Numbers Authority (IANA) listed
unassigned ports.
free_port()
will not return any TCP port currently in use - so
free_port()
can safely be used to allocate a ports programmatically without collisions - great for
automated testing or browser automation in general
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.