Before running the dashboard, ensure that the raw data is placed in the correct location.
- Copy the raw data folder from Dropbox to
supermun-dashboard/data
.
- Open Terminal (Command Prompt) and run the following command (adjust the file paths to match your setup):
cd user/GitHub/supermun-dashboard
mklink /J data "C:\Users\wb614536\Dropbox\SUPERMUN dashboard\data"
- Open
supermun-dashboard.Rproj
in RStudio.
- Ensure you have
pacman
andrenv
installed. - Run the following script to install all required packages:
source("package-installation.R")
- Run the following script to generate the final datasets used in the dashboard:
source("code/data processing.R")
-
Open RStudio and navigate to: Tools > Global Options > Publishing.
-
Click on "Connect" and select "Posit Connect".
-
Enter the server URL:
https://w0lxdshyprd1c01.worldbank.org
-
Click Next, follow the prompts to log in with your Posit Connect username (not your email), and complete the connection.
-
Restart RStudio.
After connecting to the server, you can deploy the app by running the following command in R:
rsconnect::deployApp(appId = "replace with GUID for the app")
- Replace GUID with the one shown in your app: Go to Info > Scroll down > GUID and copy it.
📌 Screenshot Reference:
-
To update metadata (variable units, titles, definitions), edit:
documentation/SUPERMUN Indicator List.csv
- When new data is added to
SUPERMUN panel.csv
or new metadata is updated, rerun:
source("code/data processing.R")
-
Open GitHub Desktop:
- Select supermun-dashboard under "Current repository".
- Select main under "Current branch".
- Click Fetch origin, then Pull changes.
-
Open RStudio and navigate to:
app/app.Rproj
- Open
global.R
- Click Run App to ensure all tabs load correctly.
-
Publishing to Posit Connect:
- Click Republish.
- In the pop-up window, locate the GUID under the Info tab.
- Run:
rsconnect::deployApp(appId = "replace with GUID for the app")
This ensures that you are publishing to the correct existing dashboard instead of creating a new one.
- If publishing fails, ensure you have sufficient permissions.
- For troubleshooting, contact the Posit Connect admin team.