Since there are plenty of examples out there telling you how to get started with shiny (like Rstudio’s, or Google), I will focus on telling some of the stuff that I did learned and may not be obvious at first, including some of the mistakes I made.
Before start, I just want to stress that I’m writing this after my first shiny app, you’ve been warned! Here it goes:
Use the “two-file” method Instead of putting everything, UI and Server, in a single app.
In this post I provide a short example in which default arguments are specified not in the function definition, but rather externally making use of environments. A method that I’ve use recently used in netdiffuseR.
Setting up an R package that supports OpenMP can be a bit awkward. While systems like Ubuntu with g++ have straight forward support for -fopenmp flags, the same may not be true un MacOS’s clang, since the latter is not shipped with it.
In order to solve this, it is necesary to have different src/Makevars file depending on whether the compiler supports OpenMP or not. This can be solved using a configure file, more over, autoconf.