This documentation is generated by Rgitbook.
It allows inserting R chunks in the documention and have these executed when building.
This means all examples provided in the documention use the rOpenSearch (and other packages) to generate the content.
The recipe provided targets a CentOS 6.5 environment. You may have to adapt it to your environment.
For Rgitbook
As root, run the commands:
yum install -y R libcurl-devel libxml2-devel npm
npm install gitbook -g
Then in an R console, run:
install.packages("devtools", dependencies=TRUE)
devtools::install_github("jbryer/Rgitbook")
For rOpenSearch documentation
As root, run the commands:
yum install -y proj-devel proj-epsg gdal-devel geos-devel netcdf-devel
Then in an R console, run:
install.packages(“rgdal", dependencies=TRUE)
install.packages("rgeos", dependencies=TRUE)
install.packages("shiny", dependencies=TRUE)
install.packages("rgbif", dependencies=TRUE)
install.packages("fpc", dependencies=TRUE)
install.packages("rworldmap", dependencies=TRUE)
library(devtools)
install_url("https://github.com/Terradue/rOpenSearch/releases/download/v0.1-SNAPSHOT/rOpenSearch_0.1.0.tar.gz")
It is assumed the rOpenSearch repository has been cloned in ~/rOpenSearch
cd ~/rOpenSearch
mvn site-deploy