Skip to content

Commit b3494e3

Browse files
Data: Statistical Neighbours updated, along with banner message. (#92)
* Data: Statistical Neighbours updated, along with banner message. * Revised SVGlite version * SVGlite version moved to 2.2.1 --------- Co-authored-by: STOKER <[email protected]>
1 parent cd42a1b commit b3494e3

13 files changed

Lines changed: 51 additions & 38 deletions

01_data/02_prod/banner_update.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"Data update","Date"
2-
"Welcome! New data includes LAC & CIN outcomes and Level 2 & 3 2024",2025-05-02
2+
"Welcome! Statistical Neighbour groupings revised following a review, and publication of 2021 census. See LAIT gov.uk landing page for further details.",2025-05-28

01_data/02_prod/bds_long_0.parquet

-14.7 KB
Binary file not shown.

01_data/02_prod/sn_april_2021.xlsx

-2.33 KB
Binary file not shown.

01_data/02_prod/sn_may_2025.xlsx

38 KB
Binary file not shown.

02_dev/la_level_page/la_dev_app.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ server_dev <- function(input, output, session) {
180180
# Include all rows if no topic is selected or "All topics" is selected
181181
filtered_topic_bds <- bds_metrics |>
182182
dplyr::filter(
183-
if (is.null(input$topic_input) || "All topics" %in% input$topic_input) {
183+
if (is.null(input$topic_input) | "All topics" %in% input$topic_input) {
184184
TRUE
185185
} else {
186186
.data$Topic %in% input$topic_input # Filter by selected topic(s)

R/fn_analysis.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ get_quartile_band_cell_colour <- function(data_polarity, data_quartile_band) {
213213
TRUE ~ "none"
214214
)
215215

216-
return(matching_colour)
216+
matching_colour
217217
}
218218

219219

R/fn_helper_functions.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ expandable <- function(input_id, label, contents) {
3131
shiny::tags$div(contents)
3232
)
3333

34-
return(gov_details)
34+
gov_details
3535
}
3636

3737

@@ -727,10 +727,10 @@ rename_columns_with_year <- function(df) {
727727
new_names <- sapply(names(df), function(col) {
728728
if (grepl("^\\d{4}", col)) {
729729
# Extract the first 4 digits
730-
return(substr(col, start = 1, stop = 4))
730+
substr(col, start = 1, stop = 4)
731731
} else {
732732
# Return the original name if it doesn't start with 4 digits
733-
return(col)
733+
col
734734
}
735735
})
736736

@@ -987,5 +987,5 @@ format_text <- function(text) {
987987
# Convert to HTML
988988
text <- HTML(text)
989989

990-
return(text)
990+
text
991991
}

R/fn_load_data.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ calculate_file_size <- function(file_type, data) {
274274
rounded_file_size <- round(file_size_kb, 2)
275275

276276
unlink(temp_file) # Remove the temporary file
277-
return(paste0(rounded_file_size, " KB"))
277+
paste0(rounded_file_size, " KB")
278278
}
279279

280280

@@ -390,7 +390,7 @@ update_and_fetch_metadata <- function(input_indicator,
390390
# Update the previous value in the reactive storage
391391
reactive_storage[[key]] <- metadata
392392

393-
return(metadata)
393+
metadata
394394
}
395395

396396

R/fn_table_helpers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ get_trend_colour <- function(value, polarity) {
783783
TRUE ~ "black"
784784
)
785785

786-
return(list(color = trend_colour))
786+
list(color = trend_colour)
787787
}
788788

789789

R/ui_panels/user_guide.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ user_guide_panel <- function() {
528528
add_warning = TRUE
529529
),
530530
HTML(
531-
" landing page for further details.
531+
" landing page for further details about the 2025 refresh.
532532
<br>
533533
<br>
534534
These neighbour groupings are used in this tool to allow

0 commit comments

Comments
 (0)