summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprashantsinalkar2019-07-17 19:12:31 +0530
committerprashantsinalkar2019-07-17 19:14:38 +0530
commitcb7179bdb376477cd6408ef84be6854efd8bfed8 (patch)
treead72dd59623e61d66cade9beb4b14eb7f3307f72
parente1ceac6805f2b6192928576f46a56964a268cdb8 (diff)
downloadR_on_Cloud_Web_API-cb7179bdb376477cd6408ef84be6854efd8bfed8.tar.gz
R_on_Cloud_Web_API-cb7179bdb376477cd6408ef84be6854efd8bfed8.tar.bz2
R_on_Cloud_Web_API-cb7179bdb376477cd6408ef84be6854efd8bfed8.zip
added shell script to install requiremnts
-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