---

This site uses cookies. Read more.

2020 Update: shiny.info has officially been released on CRAN! You can read more about recent improvements to shiny.info here.

tl;dr

shiny.info is an open source package for R Shiny that allows developers to display diagnostic information in a div located in the corner of a Shiny app. The package is available on the Comprehensive R Archive Network (CRAN) and you can make use of it simply by running install.packages(“shiny.info”).

Appsilon & Open Source

At Appsilon we thrive on supporting the open source community with innovative open source packages. As we have already mentioned at various R conferences, the typical cycle of our work is: identification of a repeating programming problem, solving it, wrapping it into a package, testing internally and once we decide it’s useful, happily sharing it with R community. This happened with shiny.semantic first and was followed by the release of shiny.router, shiny.collections, semantic.dashboard and more recently shiny.i18n.

Appsilon’s open source family got a new member recently. This time we would like to share with you: shiny.info.

R Shiny Apps Need More Info

In our daily work, we came across a problem of debugging Shiny apps that often ended with a query: “Oh, but actually what version of the app are you using?”, or “Are you sure that you are in the proper branch?”. You could say there is no problem of checking that with code or with the terminal.  But… if you work with a UI expert or you make an A/B test, you’d rather have that information displayed somewhere in your Shiny app rather than switching back and forth to the console.

Shiny.info enables exactly that! It allows developers to display any diagnostic information they need in the div located in the app corner. We created some helper functions for you. For example:

  • Display current version of the app from a global variable VERSION. Note the top left corner of the view below.

shiny.info::version(position="top right")

Second header

  • Information from git. It returns current repository status, such as branch, last commit and so on…
shiny.info::git_info()

second header

  • Author information. You can easily link to the company or personal website.

shiny.info::powered_by(“Company”, “#Link”)

Note how easy it is! You just add one line of code anywhere in your Shiny UI code.

Of course, you can display any information you want using the more generic function:


shiny.info::display(“Some diagnostic information”)

For more examples and documentation details I encourage you to visit the shiny.info GitHub page. Please let us know in the comments what you think about this package. Alternatively you can open Issues or PRs on our repository with any ideas for improvement. The package is still in its infancy, but we hope that it will be immediately useful for Shiny developers. Enjoy and add the info to your apps!

Follow Us for More



Let's work together!

Dominik Krzemiński
Dominik Krzemiński
Open Source Tech Leader