velox only requires a C++11 capable compiler, which shouldn't be an issue on most contemporary systems. However, velox depends on the rgdal, rgeos, and sf packages, which require the external GDAL (>= 2.0.0), GEOS (>= 3.3.0), PROJ.4 (>= 4.8.0), and UDUNITS libraries. On Ubuntu (>= 14.04), install these dependencies using:
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable sudo apt-get update sudo apt-get install libgdal-dev libproj-dev libgeos-dev libudunits2-dev
See the sf README for information about installation on other platforms.
To install the CRAN version (), use:
install.packages('velox')
To install the development version (r require(badger); badge_devel("hunzikp/velox", "green")
) from Github:
require(devtools) devtools::install_github('hunzikp/velox')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.