Site icon R-bloggers

Best Practices for Shiny Development

[This article was first published on Jasmine Dumas' R Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
debugging, reactivity, and designing for the user –

Introduction

As a programmer you read more code than you write. Keep it readable, commented, consistent and explicit. –Sindre Sorhus, Web Developer & Creator of Pageras

Shiny is a powerful and popular web framework for R programmers to elevate the way people consume analytics for both technical and non-technical decision makers. Shiny is used in many organizations from start-ups to top-trafficked web sites like Wikipedia. Now that Statisticians and researchers are armed with the skills to build these advanced web applications there are many opportunities to produce agile and user friendly software. This best practice guide outlines some areas (that I have grown to personally use as I’ve developed Shiny applications) that make for an enjoyable coding experience and successful deployment of applications that will actively engage users to use the application the right way.

Be kind to your future self with version control & helpful comments

Finding the bug in debugging and knowing what part of your code went awry

“Know the difference between telling Shiny to do something, and telling Shiny how to do something with reactive functions” – Joe Cheng CTO at RStudio

Try not to drag down your server

UX design concepts for Statisticians

You don’t have to change who you are, you have to be more of who you are. – Sally Hogshead, New York Times bestselling author

The Statistical community revels in big data and analytics and are now skilled in approaches to developing web applications on top of your models to generate digestible insights to business partners and customers. I’m not suggesting that everyone be an expert on user experience design (because trust me I’m not), but a little goes a long way.

Here are some quick tips that will be ‘easy’ wins that can transform a statistical tool into a software tool.

Happy Coding!

To leave a comment for the author, please follow the link and comment on their blog: Jasmine Dumas' R Blog.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.