blob: b7a4f664527d911454db659c5f5c0707f7b7608d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# R_on_Cloud_Web_API
Run following Steps :
1) Install R on machine.
2) $ chmod +X packageinstall.sh
3) $ ./packageinstall.sh
4) $ Rscript run.R
5) Check in browser http://127.0.0.1:8000/\_\_swagger_\_\/
**----------------------------------------------------------------------------**
**Run on local R console:**
R version 3.4.4
**Requirements preinstalled R packages:**
install.packages("plumber")
install.packages("jsonlite")
install.packages("readr")
install.packages("futile.logger")
install.packages("tryCatchLog")
install.packages("ggplot2")
------------------------------------------
#run.R
> library(plumber)
> r <- plumb("plumber.R") # Where 'plumber.R' is the location of the file shown above
> r$run(port=8001)
**Developer:**
Prashant Sinalkar,
FOSSEE, IIT Bombay
|