I have built some R models which has some 20 output metrics which I want to show in the frontend UI which is built using ReactJS. The application basically takes CSV files which user uploads and that is fed internally to the R models. My plan is to store the files that the user uploads in a cloud server .I am planning to use open CPU to expose my entire R program as a package and then make these uploaded files to connect to R models by making an internal call
https://server-name/ocpu/library/package/R/function -F "input=@test.csv"
Once the r models processing is complete , I will output the entire results as a as json and give it to the UI.
Please advice if this approach is feasible. I doing this for first time and unsure about this approach. Thanks!!