-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtutorial.qmd
33 lines (22 loc) · 1.14 KB
/
tutorial.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
title: "Shiny Hands On Tutorial"
author: "Dewi Lestari Amaliah"
format: pdf
editor: visual
---
## Prerequisites
1. Having R and R studio installed. If you haven't already, you can see the installation guide [here](https://posit.co/download/rstudio-desktop/).
2. Download the helper function [here](https://github.com/Dewi-Amaliah/its_shiny_slide/blob/main/app_demo/helper.R). It is a function to calculate 10-year cardiovascular risk based on Framingham Risk Score.
3. Having these packages installed: `tidyverse`, `shiny`, `shinythemes`, `rmarkdown`, and `officer`. You can install these packages by running this code:
```{r, eval = FALSE, echo = TRUE}
install.packages(c("tidyverse", "shiny", "shinythemes",
"rmarkdown", "officer"))
```
## Goal
Create a Shiny app to do health screening, i.e., BMI, blood sugar, blood pressure, and cardiovascular risk.
## Your Task
Based on the lesson, think of the UI, server, and layout component of the app!
## Steps
1. Create project: Open R Studio -\> File -\> New Directory -\> Shiny Application
2. Start write the code for UI and Server
3. The code for the app is provided here,