Building a web app on top of R (Slides from PAPIs 2014)
Transcript of Building a web app on top of R (Slides from PAPIs 2014)
![Page 1: Building a web app on top of R (Slides from PAPIs 2014)](https://reader033.fdocuments.us/reader033/viewer/2022052700/55a67ae81a28ab760f8b48b5/html5/thumbnails/1.jpg)
Building a web app on top of RChristian Mladenov, CEO
![Page 2: Building a web app on top of R (Slides from PAPIs 2014)](https://reader033.fdocuments.us/reader033/viewer/2022052700/55a67ae81a28ab760f8b48b5/html5/thumbnails/2.jpg)
Why?
![Page 3: Building a web app on top of R (Slides from PAPIs 2014)](https://reader033.fdocuments.us/reader033/viewer/2022052700/55a67ae81a28ab760f8b48b5/html5/thumbnails/3.jpg)
Adjusts parameters
Generates report
Reads report
Runs code
Requests changes
This happens quite often
Ad-hoc request
Develops analytics
code
Decision maker
Data scientist
Runs code Generates report
Adjusts parameters
Reads report Requests changes
![Page 4: Building a web app on top of R (Slides from PAPIs 2014)](https://reader033.fdocuments.us/reader033/viewer/2022052700/55a67ae81a28ab760f8b48b5/html5/thumbnails/4.jpg)
Solution
Self-service analytics web apps
Decision makers get better insights, faster
Data scientists can focus on new knowledge
![Page 5: Building a web app on top of R (Slides from PAPIs 2014)](https://reader033.fdocuments.us/reader033/viewer/2022052700/55a67ae81a28ab760f8b48b5/html5/thumbnails/5.jpg)
How?
![Page 6: Building a web app on top of R (Slides from PAPIs 2014)](https://reader033.fdocuments.us/reader033/viewer/2022052700/55a67ae81a28ab760f8b48b5/html5/thumbnails/6.jpg)
Statistical languages
![Page 7: Building a web app on top of R (Slides from PAPIs 2014)](https://reader033.fdocuments.us/reader033/viewer/2022052700/55a67ae81a28ab760f8b48b5/html5/thumbnails/7.jpg)
R solutions
RStudio Shiny
Custom web app (Python, Ruby, etc) Remote R: OpenCPU, rServe, rApache, httpuv
Integrated R: rJava, rpy2, RinRuby
Native (local or remote R) RGtk2, tcltk, Excel+VBA
Intuitics
![Page 8: Building a web app on top of R (Slides from PAPIs 2014)](https://reader033.fdocuments.us/reader033/viewer/2022052700/55a67ae81a28ab760f8b48b5/html5/thumbnails/8.jpg)
ComparisonRStudio Shiny Intuitics
R framework + server. Server and interface built with code locally
Web platform. Stateless R functions, interface built with drag & drop
Cloud + on-premise Cloud + on-premise. REST API
Same development environment Code needs to be imported
Highly customizable Not only R (import/export)
Active community Long-running computations
Save and share app snapshots
Export, dashboards, recurring reports
RMarkdown integration
![Page 9: Building a web app on top of R (Slides from PAPIs 2014)](https://reader033.fdocuments.us/reader033/viewer/2022052700/55a67ae81a28ab760f8b48b5/html5/thumbnails/9.jpg)
Demonstration
![Page 10: Building a web app on top of R (Slides from PAPIs 2014)](https://reader033.fdocuments.us/reader033/viewer/2022052700/55a67ae81a28ab760f8b48b5/html5/thumbnails/10.jpg)
Background
FMCG company
Forecasting script in R with parameters: Country & product (build a model based on newest data)
2-month forecast: price, marketing budget, # of pages in catalog, competition strength
Monthly forecast cycle: many what-if scenario runs
Aim: turn the script into an interactive app
![Page 11: Building a web app on top of R (Slides from PAPIs 2014)](https://reader033.fdocuments.us/reader033/viewer/2022052700/55a67ae81a28ab760f8b48b5/html5/thumbnails/11.jpg)
Steps
1. Split R script into functions to allow interactivity
2. Create interface that links functions
3. Share a snapshot with a colleague
![Page 12: Building a web app on top of R (Slides from PAPIs 2014)](https://reader033.fdocuments.us/reader033/viewer/2022052700/55a67ae81a28ab760f8b48b5/html5/thumbnails/12.jpg)
Thank you! !!
Christian Mladenov [email protected]
!www.intuitics.com
@intuitics facebook.com/intuitics