Slide 1

Slide 1 text

Quand un langage de Data Science se met à faire du web. Colin FAY - ThinkR 2018-06-14 Colin Fay, ThinkR - http://thinkr.fr 1 / 21

Slide 2

Slide 2 text

$ whoami Colin FAY Data Scientist & R-Hacker chez ThinkR, agence spécialisée en Data Science et en langage R. Cofondateur du Breizh Data Club, et fondateur de Data-Bzh, la première plateforme de data-blogging bretonne. http://thinkr.fr http://breizhdataclub.org http://data-bzh.fr http://twitter.com/_colinfay http://github.com/colinfay Colin Fay, ThinkR - http://thinkr.fr 2 / 21

Slide 3

Slide 3 text

ThinkR Colin Fay, ThinkR - http://thinkr.fr 3 / 21

Slide 4

Slide 4 text

Agence d'expert en Data Science et en langage R Formation Analyse Développement Consulting ThinkR Colin Fay, ThinkR - http://thinkr.fr 4 / 21

Slide 5

Slide 5 text

Pourquoi je suis là aujourd'hui ? Colin Fay, ThinkR - http://thinkr.fr 5 / 21

Slide 6

Slide 6 text

Colin Fay, ThinkR - http://thinkr.fr 6 / 21

Slide 7

Slide 7 text

Colin Fay, ThinkR - http://thinkr.fr 7 / 21

Slide 8

Slide 8 text

Quand un langage de Data Science se met à faire du web. Colin Fay, ThinkR - http://thinkr.fr 8 / 21

Slide 9

Slide 9 text

Au programme : C'est quoi R ? R et le web, pourquoi ? R et le web, comment ? Colin Fay, ThinkR - http://thinkr.fr 9 / 21

Slide 10

Slide 10 text

C'est quoi R ? Colin Fay, ThinkR - http://thinkr.fr 10 / 21

Slide 11

Slide 11 text

Langage de programmation, lingua franca de la Data Science Open Source Pensé par des datascientists, pour des datascientists import et export de tables calculs matriciels optimisés modélisations (stat, machine learning...) courantes à avancées C'est quoi R ? Colin Fay, ThinkR - http://thinkr.fr 11 / 21

Slide 12

Slide 12 text

Mais donc, en vrai, pourquoi je suis là ? ¯\_( ツ)_/¯ Colin Fay, ThinkR - http://thinkr.fr 12 / 21

Slide 13

Slide 13 text

Quand R est utilisé par et pour le web Faire du web avec R, pourquoi ? => Besoin de communiquer => Visualiser ses données => Partager ses résultats => Offrir R en clic-bouton Faire du R sur le web, pourquoi ? => Profiter des performances de R => Méthodes de data science disponibles sur le web Colin Fay, ThinkR - http://thinkr.fr 13 / 21

Slide 14

Slide 14 text

R pour le web, comment ? Rapport reproductible => Exemple: Markdown API => Exemple: plumber Applications web => Exemple: Shiny Colin Fay, ThinkR - http://thinkr.fr 14 / 21

Slide 15

Slide 15 text

R pour le web, comment ? Rapport reproductible => Intégration avancée avec Markdown Création de pages HTML/JS sans écrire de HTML/JS Pages en format HTML, que l'on peut uploader directement sur serveur markdown.Rmd DEMO TIME Colin Fay, ThinkR - http://thinkr.fr 15 / 21

Slide 16

Slide 16 text

R pour le web, comment ? API => plumber, et al. api.Rmd DEMO TIME Colin Fay, ThinkR - http://thinkr.fr 16 / 21

Slide 17

Slide 17 text

R pour le web, comment ? Applications web => Shiny De véritables applications web Accessible si on ne connait pas le HTML Hautement paramétrables si on connait le HTML (et facile à prendre en main pour le côté UI) Permet d'utiliser les perfs de R sans avoir à coder une ligne shiny.Rmd DEMO TIME Colin Fay, ThinkR - http://thinkr.fr 17 / 21

Slide 18

Slide 18 text

Webdev + R = ❤ ui <- horizontalPage( title = "An horizontal Shiny App", horizontalBox(title = "plop", content = welcome_UI("wl")) ) horizontalPage <- function(title, ...){ tagList( includeCSS("style.css"), htmlTemplate("head.html", title = title), HTML(''), h1(title), HTML('
'), ..., HTML("

Slide 19

Slide 19 text

# styles.css body { font-family: 'Source Sans Pro', Helvetica, sans-serif; background: #121212; color: #999; padding: 20px; } tr { vertical-align: top; } ... # head.html {{ title }} # box.html

{{ titre }}

{{ contenu }}
Webdev + R = ❤ Colin Fay, ThinkR - http://thinkr.fr 19 / 21

Slide 20

Slide 20 text

TL;DR Colin Fay, ThinkR - http://thinkr.fr 20 / 21

Slide 21

Slide 21 text

colin@thinkr.fr http://twitter.com/_colinfay http://twitter.com/thinkr_fr https://github.com/ColinFay https://thinkr.fr/ http://colinfay.me/ Merci ! Colin Fay Colin Fay, ThinkR - http://thinkr.fr 21 / 21