From 8e72c3056004f747f670b7201ad84d588d3aae70 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Tue, 21 Jul 2020 11:18:11 +0300 Subject: [PATCH] Add R tool for linux (#1263) * add r for ubuntu * remove head comments * fix documentation Co-authored-by: Dmitry Shibanov --- images/linux/scripts/installers/r.sh | 10 ++++++++++ images/linux/ubuntu1604.json | 1 + images/linux/ubuntu1804.json | 1 + images/linux/ubuntu2004.json | 1 + 4 files changed, 13 insertions(+) create mode 100644 images/linux/scripts/installers/r.sh diff --git a/images/linux/scripts/installers/r.sh b/images/linux/scripts/installers/r.sh new file mode 100644 index 000000000..c4e89e90c --- /dev/null +++ b/images/linux/scripts/installers/r.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Source the helpers for use with the script +source $HELPER_SCRIPTS/document.sh + +# install R +sudo apt-get install -y r-base +version=$(R --version | grep "R version" | cut -d " " -f 3) + +DocumentInstalledItem "R $version" diff --git a/images/linux/ubuntu1604.json b/images/linux/ubuntu1604.json index 23a4bf886..500a6be71 100644 --- a/images/linux/ubuntu1604.json +++ b/images/linux/ubuntu1604.json @@ -184,6 +184,7 @@ "{{template_dir}}/scripts/installers/postgresql.sh", "{{template_dir}}/scripts/installers/powershellcore.sh", "{{template_dir}}/scripts/installers/ruby.sh", + "{{template_dir}}/scripts/installers/r.sh", "{{template_dir}}/scripts/installers/rust.sh", "{{template_dir}}/scripts/installers/julia.sh", "{{template_dir}}/scripts/installers/sbt.sh", diff --git a/images/linux/ubuntu1804.json b/images/linux/ubuntu1804.json index cad08ebb1..5367e2a0f 100644 --- a/images/linux/ubuntu1804.json +++ b/images/linux/ubuntu1804.json @@ -188,6 +188,7 @@ "{{template_dir}}/scripts/installers/postgresql.sh", "{{template_dir}}/scripts/installers/powershellcore.sh", "{{template_dir}}/scripts/installers/ruby.sh", + "{{template_dir}}/scripts/installers/r.sh", "{{template_dir}}/scripts/installers/rust.sh", "{{template_dir}}/scripts/installers/julia.sh", "{{template_dir}}/scripts/installers/sbt.sh", diff --git a/images/linux/ubuntu2004.json b/images/linux/ubuntu2004.json index 95f0a4810..5c1c1a3c1 100644 --- a/images/linux/ubuntu2004.json +++ b/images/linux/ubuntu2004.json @@ -190,6 +190,7 @@ "{{template_dir}}/scripts/installers/postgresql.sh", "{{template_dir}}/scripts/installers/powershellcore.sh", "{{template_dir}}/scripts/installers/ruby.sh", + "{{template_dir}}/scripts/installers/r.sh", "{{template_dir}}/scripts/installers/rust.sh", "{{template_dir}}/scripts/installers/julia.sh", "{{template_dir}}/scripts/installers/sbt.sh",