rLandsat8 - an R interface to Landsat8

Building the documentation

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 rLandsat8 (and other packages) to generate the content.

Install the dependencies

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)
library(devtools)
install_url("https://github.com/Terradue/rLandsat8/releases/download/v0.1-SNAPSHOT/rLandsat8_0.1.0.tar.gz")

Build the documentation and upload to GitHub gh-pages branch

It is assumed the rLandsat8 repository has been cloned in ~/rLandsat8

cd ~/rLandsat8
mvn site-deploy