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
- Host: GitHub
- URL: https://github.com/hrbrmstr/mrt
- Owner: hrbrmstr
- Created: 2016-07-18T19:29:32.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-25T14:36:22.000Z (over 8 years ago)
- Last Synced: 2025-04-13T11:49:46.237Z (about 1 year ago)
- Topics: bgp, mrt, r, r-cyber, rib, router, rstats
- Language: C++
- Size: 16.6 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
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/")
```