The goal of coinmarketcapr is To get Cryptocurrencies Market Cap Prices from Coin Market Cap
coinmarketcapr
can be directly installed from CRAN:
install.packages("coinmarketcapr")
And the development version can be installed from Github:
# install.packages("devtools")
devtools::install_github("amrrs/coinmarketcapr")
- jsonlite
- RCurl
- ggplot2
library(coinmarketcapr)
latest_marketcap <- get_global_marketcap('EUR')
coinmarketcapr
can be loaded just like any other R-package with library(coinmarketcapr)
.
Note: If you're trying this behind a Firewall, you might get:
Error in open.connection(con, "rb") : Timeout was reached
To resolve this error, Please refer this link: Configuring R to Use an HTTP or HTTPS Proxy
library(coinmarketcapr)
#get the global market cap details and assign it to a dataframe
latest_marketcap <- get_global_marketcap('EUR')