3:15 - 3:45 PM - Why modules matter for new Shiny developers

Emily Riederer

R users are increasingly trained to develop with good principles such as writing modular functions, testing their code, and decomposing long individual scripts into R projects. In recent years, such approaches have crept earlier into introductory R education with the realization that applying best practices is not an advanced skill but rather empowers beginners with a more robust structure. However, new Shiny developers are confronted with two challenges: they must simultaneously learn new packages and concepts (like reactivity) which introductory tutorials demonstrate how to write their apps as single scripts. This means small changes are harder to test and debug for the groups that need it the most. Although Shiny modules offer a solution to this exact problem, they are regarded as an advanced topic and often not encountered until much later in a developer’s journey. In this talk, I will demonstrate a workflow to encourage the use of modules for newer Shiny users. I argue that a ‘module-first’ approach helps to decompose design into more tangible, bite-sized, and testable components and prevent the code sprawl that makes Shiny feel intimidating. Further, this approach can be even more powerful when developing Shiny applications in the enterprise setting and onboarding new team members to existing applications.

Emily Riederer is a Senior Analytics Manager at Capital One where she has led teams focused on all parts of the data stack -- from designing high-quality datamarts, analytical tools, BI reporting, and machine learning models. Outside of work, Emily enjoys pro-bono data science projects, writing about data and computational reproducibility (on her blog and as a coauthor of The R Markddown Cookbook and 97 Things Every Data Engineer Should Know), and volunteering on the editorial board of rOpenSci and as an a technical textbook reviewer for CRC Press.
Sun 3:21 am - 12:00 am
App, Emily Riederer, Modules, Shiny