get_ip_address: Get the current IP address

Description Usage Arguments Value Examples

Description

An example use cause is getting the IP address within a docker container for the user to SSH into in order to run an R script in the background

Usage

1
2
3
get_ip_address(cmd = "ip address",
  ip_pattern = "(\\d{1,3}\\.){3}\\d{1,3}", con_pattern = "eth0",
  verbose = FALSE)

Arguments

cmd

system call that gets the IP address. Defaults to 'ip address'

ip_pattern

regex pattern that matches an ip address

con_pattern

regex pattern for the device. Defaults to 'eth0'

verbose

whether or not to print statments during parsing. Defaults to FALSE

Value

string

Examples

1
2
get_ip_address()
get_ip_address(con_pattern = 'wlp3s0')

bi-sdal/sdalr documentation built on May 12, 2019, 8:29 p.m.