-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
77 lines (55 loc) · 2.1 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
message = FALSE,
warning = FALSE,
collapse = TRUE,
comment = "##",
fig.path = "README-"
)
options(width=120)
```
[](https://travis-ci.org/hrbrmstr/myip)
[](https://codecov.io/gh/hrbrmstr/myip)
[](https://cran.r-project.org/package=myip)
# myip
Tools to Determine Your Public 'IP' Address(es)
## Description
It is often necessary to know the 'IPv4' and/or 'IPv6' external addresses of a workstation for 'API' calls. Functions are provided to use one or more external services to accomplish this task along with a wrapper function that can return results from multiple services or use a random service.
## What's Inside The Tin?
The following functions are implemented:
- `myip`/`ip_external`: Wrapper function for getting your IP address
- `akamai`: Use whatismyip.akamai.com to retrieve public IP address
- `amazon`: Use checkip.amazonaws.com to retrieve public IP address
- `httpbin`: Use httpbin.org to retrieve public IP address
- `icanhazip`: Use icanhazip to retrieve public IP address
- `ipecho`: Use ipecho.net/plain to retrieve public IP address
- `ipinfo`: Use ipinfo.io/ip to retrieve public IP address
- `opendns`: Use checkip.dyndns.org to retrieve public IP address
## Installation
```{r eval=FALSE}
devtools::install_git("https://git.sr.ht/~hrbrmstr/myip")
# OR
devtools::install_git("https://gitlab.com/hrbrmstr/myip")
# OR
devtools::install_git("https://github.com/hrbrmstr/myip")
```
## Usage
```{r}
library(myip)
# current verison
packageVersion("myip")
akamai()
httpbin()
myip("all")
```
## myip Metrics
```{r cloc, echo=FALSE}
cloc::cloc_pkg_md()
```
## Code of Conduct
Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md).
By participating in this project you agree to abide by its terms.