diff --git a/code/05_ExtractEnvironment.Rmd b/code/05_ExtractEnvironment.Rmd new file mode 100644 index 0000000000000000000000000000000000000000..7d33761518e0734c34817486c80361965d1f3f46 --- /dev/null +++ b/code/05_ExtractEnvironment.Rmd @@ -0,0 +1,52 @@ +--- +title: "sPlot 3.0 - Environmental Data" +author: "Francesco Maria Sabatini" +date: "2/14/2020" +output: html_document +--- + +<center> +  +</center> + + +**Timestamp:** `r date()` +**Drafted:** Francesco Maria Sabatini +**Revised:** +**version:** 1.0 + +This report documents the construction of the header file for sPlot 3.0. It is based on dataset sPlot_3.0.2, received on 24/07/2019 from Stephan Hennekens. + + +```{r results="hide", message=F, warning=F} +knitr::opts_chunk$set(echo = TRUE) +library(tidyverse) +library(viridis) +library(readr) +library(xlsx) +library(knitr) +library(kableExtra) + +## Spatial packages +library(rgdal) +library(sp) +library(sf) +library(rgeos) +library(raster) +library(rworldmap) +#library(elevatr) +#library(rnaturalearth) +#library(dggridR) + +#save temporary files +write("TMPDIR = /data/sPlot/users/Francesco/_tmp", file=file.path(Sys.getenv('TMPDIR'), '.Renviron')) +write("R_USER = /data/sPlot/users/Francesco/_tmp", file=file.path(Sys.getenv('R_USER'), '.Renviron')) +rasterOptions(tmpdir="/data/sPlot/users/Francesco/_tmp") +``` + +## Import header data + +```{r} +load("../_output/header_splot3.0.RData") +``` +