The application follows a modular architecture, making it easy to
+manage, extend, and customize. Here’s a deeper look into the directory
+structure and the role of each:
+
Data (data/
)
+
This directory houses datasets required for the risk assessment
+models. Files can include raw or cleaned CSV, Excel sheets, or R Data
+objects. The readData.R
script reads these datasets into
+the application at runtime.
+
+
Modules (modules/
)
+
Custom Shiny modules that offer specific functionalities like form
+elements, data tables, or even smaller pieces of UI are stored here.
+Each module has its associated server logic, ensuring reusability across
+different parts of the application.
+
+
Pages (pages/
)
+
The pages/
directory is the heart of the application,
+containing the UI and logic for each section. The structure is divided
+further to isolate each module’s concerns:
+
+
About (about/
)
+
The About section provides an overview of the application’s purpose,
+features, and how to use it. This section aims to offer users quick
+insights into what they can achieve with the app.
+
+
+
Web Assets (www/
)
+
This directory stores static files such as images, CSS, and
+client-side JavaScript files. The application refers to these for
+styling and additional functionalities.
+
+
App Entry (app.R
)
+
This is the main R script that pulls together modules, data, and UI
+components to run the application. It initializes the Shiny server and
+renders the app.
+
+