An open API service indexing awesome lists of open source software.

https://github.com/hrbrmstr/mrt

Tools to Retrieve and Process 'BGP' Files in R
https://github.com/hrbrmstr/mrt

bgp mrt r r-cyber rib router rstats

Last synced: 5 months ago
JSON representation

Tools to Retrieve and Process 'BGP' Files in R

Awesome Lists containing this project

README

          

---
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/")
```