Skip to content

Commit

Permalink
Style code
Browse files Browse the repository at this point in the history
  • Loading branch information
Moohan committed Mar 25, 2024
1 parent 35c6ccc commit 37579be
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,36 +51,36 @@ stopifnot(file.exists(map)) # Error if the file path doesn't exist.
# 2. Loop through each locality to create the main body of the profiles and the summary table
for (LOCALITY in locality_list) {
## 2a) Source in all the scripts for a given LOCALITY

# demographics
source("Demographics/1. Demographics - Population.R")
source("./Demographics/2. Demographics - SIMD.R")

# housing
source("./Households/Households Code.R")

# services
source("./Services/2. Services data manipulation & table.R")

# general health
source("./General Health/3. General Health Outputs.R")

# lifestyle & risk factors
source("./Lifestyle & Risk Factors/2. Lifestyle & Risk Factors Outputs.R")

# unscheduled care
source("./Unscheduled Care/2. Unscheduled Care outputs.R")

# appendices
source("./Master RMarkdown Document & Render Code/Tables for Appendix.R")

# Remove tidylog package which messes up outputs
detach(package:tidylog, unload = TRUE)

## 2b) Create the main body of the profiles

rmarkdown::render("./Master RMarkdown Document & Render Code/Locality_Profiles_Master_Markdown.Rmd",
output_file = paste0(LOCALITY, " - Locality Profile.docx"),
output_file = paste0(LOCALITY, " - Locality Profile.docx"),
output_dir = paste0(lp_path, "Master RMarkdown Document & Render Code/Output/")
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ y <- 1 # tables
# # demographics
# source("Demographics/Scripts/1. Demographics - Population.R")
# source("Demographics/Scripts/2. Demographics - SIMD.R")
#
#
# # housing
# source("Households/Scripts/Households Code.R")
#
#
# # services
# source("Services/Scripts/2. Services data manipulation & table.R")
# # services map (uncomment this when testing out individual localities)
# # source("Services/Scripts/3. Service HSCP map.R")
#
#
# # general health
# source("General Health/Scripts/3. General Health Outputs.R")
#
#
# # lifestyle & risk factors
# source("Lifestyle & Risk Factors/Scripts/2. Lifestyle & Risk Factors Outputs.R")
#
#
# # unscheduled care
# source("Unscheduled Care/Scripts/2. Unscheduled Care outputs.R")
#
Expand Down

0 comments on commit 37579be

Please sign in to comment.