Consider a r script implementing a simple function which returns histogram plot from dataframe in r consisting of three columns say username, monthname and monthly salary. Now how to integrate to deployR where a simple http call can pass the parameter of username and get histogram related to that user? As I am not a application developer and used to integrate BI Applications using simple http calls with passing username as one of the URL parameters, I want to implement same here. Any possibility? say http://url/username=XYZ which returns me the plot for that user.
Asked
Active
Viewed 98 times
0
-
Which programming language are you using? – RabidDog5150 Jul 11 '16 at 14:03
1 Answers
1
Without writing a specific application or a web service acting as a proxy, I don't think it would be possible. The reason is that in order to run an R script in DeployR, you need more than one call to the API. This is regardless of the client library you want to use. You will have to :
- Setup the DeployR session and context execution
- Set the parameters
- Launch the R script
- Get the results
As far as I know, it can't be done in one HTTP shot.

Frank
- 66,179
- 8
- 96
- 180

Yves Peneveyre
- 11
- 2