Biochar Environment

Install Java and rJava

Install Java and a few other useful dependencies.

apt-get -qq update
apt-get install openjdk-8-jdk \
libxext6 libxrender1 rlwrap
apt-get clean
rm -r /var/lib/apt/lists/* # Clear package list so it isn't stale
  R CMD javareconf
#java -version
update-alternatives --display java
#remove.packages("rJava")
devtools::install_version("rJava","0.9-10")

Install Future and Highcharter

options(nextjournal.display.htmlwidgetsEnabled=TRUE)
if (! "future" %in% installed.packages()[,1]) install.packages("future")
if (! "highcharter" %in% installed.packages()[,1]) install.packages("highcharter")
install.packages("leaflet")
#sudo add-apt-repository ppa:ubuntugis/ppa
apt-get update
apt-get install gdal-bin
apt-get install libgdal-dev libv8-dev libjq-dev libudunits2-dev libprotobuf-dev
apt install protobuf-compiler
if (! "rgdal" %in% installed.packages()[,1]) install.packages("rgdal")
if (! "devtools" %in% installed.packages()[,1]) install.packages("devtools")
if (! "leaflet.extras" %in% installed.packages()[,1]) devtools::install_github('bhaskarvk/leaflet.extras')
if (! "rgeos" %in% installed.packages()[,1]) install.packages("rgeos")
if (! "tidyverse" %in% installed.packages()[,1]) install.packages("tidyverse")
if (! "geojsonio" %in% installed.packages()[,1]) devtools::install_github("ropensci/geojsonio")
install.packages("RCurl")
install.packages("soilDB")
install.packages("visNetwork")
library(visNetwork)
library(shiny)
library(soilDB)

Test

library(dplyr)
installed.packages() %>%
        as_tibble() %>%
        select(Package, Version)
0 items