In this example, we're going to produce URLs that allow Shiny to configure itself when the user lands on the page to save them from having to set up their preferences each time. We will make use of two variables: one specifies that a user is only interested in data from the NHS network domain and the other specifies that the user wants a smoothing line present on their trend graph. Users who request a smoothing line will also be taken straight to the trendline tab.
As well as the work with the GET query, the only extra bit we will need here is a function to change the selected panel from tabsetPanel(). This is done, unsurprisingly, using updateTabsetPanel().
Catering to these different needs is very easily done by creating URLs that encode the preferences and giving them to the different users. To simplify the code, we will pretend that...