In the prior sections, we have learned how to:
- Download the datasets
- Create the backend database
- Create the code for the backend database
- Set up RStudio
- Create the R Shiny application
To start the application, complete the following steps:
-
Start the Q application, make sure you are in the home directory. Type pwd and hit Enter. This will show the present working directory of /home/packt as shown in the coming image.
- Next, type q and hit Enter.
- At the q prompt, type in l cms.q.
Note that cms.q is the file we created in our earlier section when developing the Q application.
The script will load the database and return back to the q) prompt:
- Launch the CMS Open Payment application
- In RStudio, open the app.R file (which contains the R Code) and click on Run App at the top-right, shown as follows:
This will launch the web application, shown as follows:
We have now finished developing a complete CMS Open Payments application that allows the end user to filter, aggregate, and analyze the data. Now, you can run queries by selecting various options on the screen. There are two functionalities in the app:
- Filtering data (default view)
- Aggregating data (you can switch to this option by selecting Aggregate Data from the Display Type menu)