Skip to content

Commit

Permalink
use get_spd_path
Browse files Browse the repository at this point in the history
Co-authored-by: James McMahon <[email protected]>
  • Loading branch information
Jennit07 and Moohan authored Jul 18, 2024
1 parent 6ee1227 commit 84c13e4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions extract_new_nsu_cohort/filter_nsu_duplicates.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,7 @@ schema <- "FINAL_2"
nsu_dir <- path("/conf/hscdiip/SLF_Extracts/NSU")

# latest geography file
spd_path <- get_file_path(
directory = fs::path(
fs::path("/", "conf", "linkage", "output", "lookups", "Unicode"),
"Geography",
"Scottish Postcode Directory"
),
file_name = NULL,
file_name_regexp = stringr::str_glue("Scottish_Postcode_Directory_.+?\\.parquet")
)
spd_path <- get_spd_path()

# Set up connection to SMRA-----------------------------------------------------
db_connection <- odbc::dbConnect(
Expand Down

0 comments on commit 84c13e4

Please sign in to comment.