summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpackageinstall.sh20
-rw-r--r--requirements.txt6
2 files changed, 26 insertions, 0 deletions
diff --git a/packageinstall.sh b/packageinstall.sh
new file mode 100755
index 0000000..d99af8d
--- /dev/null
+++ b/packageinstall.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/bash
+while IFS=" " read -r pkg;
+do
+
+
+ [ -z ${pkg} ] && help
+
+ REXEC=$(which R)
+
+ if [ -z ${REXEC} ]; then
+ echo "R not found, please ensure R is available and try again."
+ exit 1
+ fi
+
+ echo "install.packages(\"${pkg}\", repos=\"https://cran.rstudio.com/\")" | R --no-save
+done < requirements.txt
+
+
+
+
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..65f77c2
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,6 @@
+plumber
+jsonlite
+readr
+futile.logger
+tryCatchLog
+ggplot2 \ No newline at end of file