-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
64 lines (40 loc) · 1.2 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
---
output: rmarkdown::github_document
---
`mrt` : Tools to Retrieve and Process 'BGP' Files
### Requirements
This package links to [`libBGPdump`](https://bitbucket.org/ripencc/bgpdump/wiki/Home).
On macOS, you can do the following to install the libary:
brew install bgpdump
On Ubuntu/Debian (or prbly any other one) you can do the following to install the library:
sudo apt-get install -y mercurial libbz2-dev zlib1g-dev
hg clone https://bitbucket.org/ripencc/bgpdump
cd bgpdump
./bootstrap.sh
make
sudo make install
(you may need to use `ldconfig` after that depending on your system)
The following functions are implemented:
- `get_latest_rib`: Retrieve the latest RouteViews RIB file
- `get_rib`: Retrieve a specific, historical RouteViews RIB file
- `rib_to_asn_table`: Convert RouteViews RIB (bgpdump table dump v2) to subnet/asn map
### Installation
```{r eval=FALSE}
devtools::install_github("hrbrmstr/mrt")
```
```{r echo=FALSE, message=FALSE, warning=FALSE, error=FALSE}
options(width=120)
```
### Usage
```{r}
library(mrt)
# current verison
packageVersion("mrt")
```
### Test Results
```{r}
library(mrt)
library(testthat)
date()
test_dir("tests/")
```