Posit, PBC
“Illustration from Hadley Wickham’s talk”The Joy of Functional Programming (for Data Science).” by Allison Horst
Ideas?
Ideas?
Reproduceable
Easy to share
Pretty
Building reports programmatically is powerful!
RMarkdown - Fully reproducible notebooks that weave together narrative text and code to produce formatted outputs.
Quarto - A new open-source scientific and technical publishing system that works with R, Python, Julia, Javascript, and many other languages.
Jupyter - Web application for sharing computational documents. (Not covered in today’s talk)
RMarkdown - Fully reproducible notebooks that weave together narrative text and code to produce formatted outputs.
RMarkdown documents are:
General example:
Blastula - Make it easy to send great looking HTML emails.
Flexdashboard - Flexible and easy to specify row and column-based layouts. Components are intelligently re-sized to fill the browser and adapted for display on mobile devices.
Connectwidgets - Query a Connect server for a subset of your existing content items, then organize them within htmlwidget components in an R Markdown document or Shiny application. (Not covered in today’s talk)
Parameterized Rmarkdown example:
When deploying the app it will need to have the source code included so that users can change the input parameter and re-render.
Before:
Blastula example:
After:
Blastula example:
Flexdashboard - Flexible and easy to specify row and column-based layouts. Components are intelligently re-sized to fill the browser and adapted for display on mobile devices.
Flexdashboard example:
quarto - A new open-source scientific and technical publishing system that works with R, Python, Julia, Javascript, and many other languages.
Quarto and RMarkdown work similarly, however Quarto was developed to be language agnostic and applied all the learnings from the development of RMarkdown.
Image from : Quarto FAQ
General example:
Code blocks can also be included in Quarto presentations:
Quarto with Python and lightbox example:
Pros:
Better performance because everything is pre-calculated
Ecosystem of packages for displaying interactive content within static documents
Cons:
Computations won’t be happening real-time
Less dynamic options
Blending static and interactive pieces of content can open up new workflows and reporting possibilities
Learn more : Bike Predict Solutions Example
tidymodels - The tidymodels framework is a collection of packages for modeling and machine learning using tidyverse principles.
vetiver - Vetiver provides fluent tooling to version, deploy, and monitor a trained model.
pins - The pins package publishes data, models, and other R objects, making it easy to share them across projects and with your colleagues.
plumber APIs - Plumber allows you to create a web API by merely decorating your existing R source code with roxygen2-like comments.
tidymodels https://www.tidymodels.org/, vetiver https://vetiver.rstudio.com/, pins https://pins.rstudio.com/, plumber https://www.rplumber.io/
pins - The pins package publishes data, models, and other R objects, making it easy to share them across projects and with your colleagues.
Pin example:
Explore all the content options deployable to Connect as well as examples: Connect User Guide
Awesome List for RMarkdown tips and tricks
Awesome List for Quarto tips and tricks
Happy Reporting!
RMarkdown - Fully reproducible notebooks that weave together narrative text and code to produce formatted outputs.
Blastula - Make it easy to send great looking HTML emails.
quarto - A new open-source scientific and technical publishing system that works with R, Python, Julia, Javascript, and many other languages.
Jupyter - Web application for sharing computational documents.