+ All Categories
Home > Software > Building a web app on top of R (Slides from PAPIs 2014)

Building a web app on top of R (Slides from PAPIs 2014)

Date post: 15-Jul-2015
Category:
Upload: zhvihti
View: 438 times
Download: 0 times
Share this document with a friend
Popular Tags:
12
Building a web app on top of R Christian Mladenov, CEO
Transcript
Page 1: Building a web app on top of R (Slides from PAPIs 2014)

Building a web app on top of RChristian Mladenov, CEO

Page 2: Building a web app on top of R (Slides from PAPIs 2014)

Why?

Page 3: Building a web app on top of R (Slides from PAPIs 2014)

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)

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)

How?

Page 6: Building a web app on top of R (Slides from PAPIs 2014)

Statistical languages

Page 7: Building a web app on top of R (Slides from PAPIs 2014)

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)

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)

Demonstration

Page 10: Building a web app on top of R (Slides from PAPIs 2014)

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)

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)

Thank you! !!

Christian Mladenov [email protected]

!www.intuitics.com

@intuitics facebook.com/intuitics


Recommended