class: center, middle, inverse, title-slide #
How R Markdown family automates the last mile of analytics
##
Santa Barbara R Users Group, 2019
### Zhi Yang ### 2019-09-18 --- # R Markdown ### Guess which one is **not** made by R Markdown? .pull-left[ <img src="https://bookdown.org/yihui/rmarkdown/images/cover.png" width=65%> ] .pull-right[ ### - [A personal website](https://malco.io/) ### - [A book](https://r4ds.had.co.nz/) ### - [A presentation](https://evamaerey.github.io/ggplot_flipbook/ggplot_flipbook_xaringan.html#9) ### - [An interactive website](https://malcolmbarrett.shinyapps.io/purrr_exercises/) ### - [A dashboard](https://shiring.shinyapps.io/demo_dashboard_pred_maint_fast/#section-introduction) ] --- class: center, middle ## The answer is # None of them ## They are all built on R Markdown π --- # Introduction to "downverse" <img src="https://image-static.segmentfault.com/287/168/2871686611-57c533596a560"> .footnote[[from harryprince/awesome-rmarkdown](https://github.com/harryprince/awesome-rmarkdown/blob/master/README.md)] --- class: middle, center # Don't worry ![](https://i.pinimg.com/originals/c6/52/04/c6520426b6017d1dcbedae3bf61afd99.jpg) # They are all just RMarkdown! --- class: middle, center <img src="http://giphygifs.s3.amazonaws.com/media/1M9fmo1WAFVK0/giphy.gif" width = 150%> --- class: middle, center, inverse ## Does one of the following apply to you? -- ## π become a data scientist -- ## π« considering getting a Ph.D. -- ## π€ undecided --- <img src="https://media1.tenor.com/images/32845b1f178c23abeed57a72cf3c6315/tenor.gif?itemid=10296205"> -- .pull-left[ <img src="https://media.giphy.com/media/xwtnF7qVyujQc/giphy.gif" width = 76%> ] -- .pull-right[ <img src="https://media.giphy.com/media/70dmEaoyI2Ns4/giphy.gif"> ] --- class: middle, center, inverse ## At the end of this talk -- <div id="demotext">two bonuses</div> --- # Becoming a data scientist <blockquote class="twitter-tweet tw-align-center"><p lang="en" dir="ltr">βSearch for relevant data, and explore it until you can write a nice blog post about it (and ideally present it at meetups). ββ from <a href="https://twitter.com/dan_s_becker?ref_src=twsrc%5Etfw">@dan_s_becker</a>, the Head of Kaggle Learn, on how to find a quick path towards a portfolio project to land you your first job as a data scientist.</p>— Zhi Yang (@zhiiiyang) <a href="https://twitter.com/zhiiiyang/status/1118945335722696704?ref_src=twsrc%5Etfw">April 18, 2019</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> --- # Your to-do-list and toolkit .pull-left[ #### - make slides #### - write a blog #### - get a resume ] .pull-right[ <br> <img src='imgs/icon.png'> ] --- # Making slides .pull-left[ ### Need to show `R cde snippets`? <img src="https://cdn-images-1.medium.com/max/800/1*8Z1xFlBtHVN1rY7oWFnlIg.gif"/> ] .pull-right[ ### got no time for formatting? <img src="https://i2.wp.com/erickimphotography.com/blog/wp-content/uploads/2018/09/steve-jobs-interview-11.png" width="90%" />] --- # Make slides <blockquote class="twitter-tweet tw-align-center"><p lang="en" dir="ltr">Sneak peak of Part 1 of my Machine Learning 101 talk for <a href="https://twitter.com/RLadiesSydney?ref_src=twsrc%5Etfw">@RLadiesSydney</a> this Wednesday! π€« π<br>β<br>KNN is a fast, simple, and effective <a href="https://twitter.com/hashtag/machinelearning?src=hash&ref_src=twsrc%5Etfw">#machinelearning</a> algorithm for classifying data in <a href="https://twitter.com/hashtag/rstats?src=hash&ref_src=twsrc%5Etfw">#rstats</a>! β <br><br>PS how amazing is <a href="https://twitter.com/statsgen?ref_src=twsrc%5Etfw">@statsgen</a>'s Kunoichi theme for <a href="https://twitter.com/hashtag/xaringan?src=hash&ref_src=twsrc%5Etfw">#xaringan</a>!? <a href="https://t.co/M2LyONW0vP">pic.twitter.com/M2LyONW0vP</a></p>— Sarah Romanes (@sarah_romanes) <a href="https://twitter.com/sarah_romanes/status/1048760030659407872?ref_src=twsrc%5Etfw">October 7, 2018</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> --- # Build a personal website <blockquote class="twitter-tweet tw-align-center"><p lan tw-align-centerg="en" dir="ltr">I have a personal academic website now! -> <a href="https://t.co/n7PYVMKuQl">https://t.co/n7PYVMKuQl</a><br><br>It has my resume, my publications, talks, projects, and a blog. Even more, I already have two more ideas for posts.<a href="https://twitter.com/hashtag/AcademicTwitter?src=hash&ref_src=twsrc%5Etfw">#AcademicTwitter</a> <a href="https://twitter.com/hashtag/ECRchat?src=hash&ref_src=twsrc%5Etfw">#ECRchat</a> <a href="https://twitter.com/hashtag/PhDchat?src=hash&ref_src=twsrc%5Etfw">#PhDchat</a> <a href="https://twitter.com/hashtag/AcademicWebsite?src=hash&ref_src=twsrc%5Etfw">#AcademicWebsite</a> <a href="https://twitter.com/hashtag/blogdown?src=hash&ref_src=twsrc%5Etfw">#blogdown</a> <a href="https://t.co/vAGXSGaLcV">pic.twitter.com/vAGXSGaLcV</a></p>— Dr Melina Vidoni (@melvidoni) <a href="https://twitter.com/melvidoni/status/1063378687008141315?ref_src=twsrc%5Etfw">November 16, 2018</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> --- # Write a blog with minimum effort <blockquote class="twitter-tweet tw-align-center"><p lang="en" dir="ltr">If youβre an academic you need a website so that people can easily find info about your research and publications. Hereβs how to make your own website for free in an under an hour using the blogdown package in <a href="https://twitter.com/hashtag/Rstats?src=hash&ref_src=twsrc%5Etfw">#Rstats</a> [THREAD] <a href="https://t.co/9Lmo00Gkf0">pic.twitter.com/9Lmo00Gkf0</a></p>— Dan Quintana (@dsquintana) <a href="https://twitter.com/dsquintana/status/993410504570888192?ref_src=twsrc%5Etfw">May 7, 2018</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> --- # Build a site under 20 seconds ![](imgs/blogdown1.gif) --- # Serve a site ![](imgs/blogdown2.gif) --- # Write a blog ![](/imgs/emi-showcase.gif) --- # Why write a blog? <blockquote class="twitter-tweet"><p lang="en" dir="ltr">Should people stop writing blog posts and move to Medium? π§<br>Personal Blog Websites vs. Medium: Pros and Cons by <a href="https://twitter.com/Brightspeaking?ref_src=twsrc%5Etfw">@Brightspeaking</a> <a href="https://t.co/VoXM5wWbzB">https://t.co/VoXM5wWbzB</a></p>— Zhi Yang (@zhiiiyang) <a href="https://twitter.com/zhiiiyang/status/1172637116406226944?ref_src=twsrc%5Etfw">September 13, 2019</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> --- # Tutorials ![](imgs/summer.PNG) --- # Protip from Alison Hills <blockquote class="twitter-tweet"><p lang="en" dir="ltr">An <a href="https://twitter.com/hashtag/rstats?src=hash&ref_src=twsrc%5Etfw">#rstats</a> <a href="https://twitter.com/hashtag/blogdown?src=hash&ref_src=twsrc%5Etfw">#blogdown</a> file hierarchy cheatsheet:<br><br>ββ archetypes <- edit me! <br>ββ config.toml <- edit me! <br>ββ content <- edit me! <br>ββ data <- edit me! <br>ββ layouts <- edit me! <br>ββ public <- ignore me!<br>ββ static <- use me! (png/pdf/csv/xls)<br>ββ themes <- don't touch! <a href="https://t.co/gvVA703Lwa">pic.twitter.com/gvVA703Lwa</a></p>— Alison Hill (@apreshill) <a href="https://twitter.com/apreshill/status/1078494406301212672?ref_src=twsrc%5Etfw">December 28, 2018</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> --- # Get a resume ![](imgs/pagedown.gif) --- # Write a report .pull-left[ <img src="https://github.com/juba/rmdformats/raw/master/tools/screenshots/material.png" width=100%> ] .pull-right[ <img src="https://github.com/juba/rmdformats/raw/master/tools/screenshots/html_docco.png" width=74%> ] ## rmdformats pkg provides ready-to-use HTML output formats. --- # Build a dashboard <blockquote class="twitter-tweet tw-align-center"><p lang="en" dir="ltr">The <a href="https://twitter.com/hashtag/Fusarium?src=hash&ref_src=twsrc%5Etfw">#Fusarium</a> graminearum species complex global database and mapping is taking shape! thanks to <a href="https://twitter.com/rstudio?ref_src=twsrc%5Etfw">@rstudio</a> <a href="https://twitter.com/hashtag/flexdashboard?src=hash&ref_src=twsrc%5Etfw">#flexdashboard</a> <a href="https://twitter.com/hashtag/crosstalk?src=hash&ref_src=twsrc%5Etfw">#crosstalk</a> <a href="https://t.co/ITxh5R5j7U">pic.twitter.com/ITxh5R5j7U</a></p>— Emerson Del Ponte (@edelponte) <a href="https://twitter.com/edelponte/status/898013549758472196?ref_src=twsrc%5Etfw">August 17, 2017</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> --- # Make your report interactive!! <blockquote class="twitter-tweet tw-align-center"><p lang="en" dir="ltr">R Shiny + flexdashboard with code<br><br>π± github repository: <a href="https://t.co/NuIofPI8xa">https://t.co/NuIofPI8xa</a><br>β¨ live app: <a href="https://t.co/KmelRXgEUW">https://t.co/KmelRXgEUW</a><br><br>πͺ <a href="https://twitter.com/hashtag/getstrongeR?src=hash&ref_src=twsrc%5Etfw">#getstrongeR</a> <a href="https://twitter.com/hashtag/Rstats?src=hash&ref_src=twsrc%5Etfw">#Rstats</a> <a href="https://twitter.com/hashtag/shiny?src=hash&ref_src=twsrc%5Etfw">#shiny</a> <a href="https://twitter.com/hashtag/rmarkdown?src=hash&ref_src=twsrc%5Etfw">#rmarkdown</a> <a href="https://t.co/teOOoEFfdk">pic.twitter.com/teOOoEFfdk</a></p>— Alessio Passalacqua (@alessiopassah2o) <a href="https://twitter.com/alessiopassah2o/status/1153924107903426560?ref_src=twsrc%5Etfw">July 24, 2019</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> --- # Thinking of getting a Ph.D.? .pull-left[ #### - create a poster #### - build a site #### - develop a thesis #### - design exercises ] .pull-right[ <br> <img src='imgs/icon2.png'> ] --- # Create a poster ![](imgs/posterdown.gif) --- # Build a site for an R package ![](imgs/pkgdown.gif) --- # Write a thesis/book ![](imgs/bookdown.gif) --- # Design exercises for R <blockquote class="twitter-tweet tw-align-center"><p lang="en" dir="ltr">Discovery of the week: <a href="https://twitter.com/hashtag/rstats?src=hash&ref_src=twsrc%5Etfw">#rstats</a> live code editor areas can be embedded in a slide deck using <a href="https://twitter.com/hashtag/learnr?src=hash&ref_src=twsrc%5Etfw">#learnr</a> + <a href="https://twitter.com/hashtag/rmarkdown?src=hash&ref_src=twsrc%5Etfw">#rmarkdown</a> + <a href="https://twitter.com/hashtag/slidy?src=hash&ref_src=twsrc%5Etfw">#slidy</a> affording powerful options to foster active learning. <a href="https://t.co/AwWgqRdbM8">https://t.co/AwWgqRdbM8</a> <a href="https://t.co/8ta4Pd3ef5">pic.twitter.com/8ta4Pd3ef5</a></p>— James Balamuta (@axiomsofxyz) <a href="https://twitter.com/axiomsofxyz/status/999487130463277056?ref_src=twsrc%5Etfw">May 24, 2018</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> --- # But Wait, There's More! #### writing manuscripts ## papaja, rticles, thesisdown, tufte, distill #### helper packages ## remedy, namer, citr --- # Always start with templates! <blockquote class="twitter-tweet"><p lang="en" dir="ltr">"Good artists copy; great artists steal" - Pablo Picasso <a href="http://t.co/cGSQxxrZ9h">pic.twitter.com/cGSQxxrZ9h</a></p>— History In Pictures (@HistoryInPics) <a href="https://twitter.com/HistoryInPics/status/481492202825474048?ref_src=twsrc%5Etfw">June 24, 2014</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> --- # R Markdown Gallery ![](imgs/gallery.gif) .footnote[https://rmarkdown.rstudio.com/gallery.html] --- # R Markdown Family ![](imgs/family.gif) .footnote[https://github.com/pzhaonet/rmd] --- class: middle, center, inverse <div id="demotext">Bonus One</div> ## How to get a sharable link for your R Markdown file? --- class: middle, center, inverse <div id="demotext">Bonus Two</div> ## How to deploy your website?