Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ BugReports: https://github.com/The-Strategy-Unit/nhp_outputs/issues
Depends:
R (>= 4.1.0)
Imports:
azkit,
azkit (>= 0.3.0),
Comment thread
tomjemmett marked this conversation as resolved.
AzureStor,
bs4Dash,
cachem,
Expand Down
20 changes: 5 additions & 15 deletions R/fct_get_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,12 @@ get_params <- function(r) {
}

get_model_run_from_ats <- function(dataset, model_run_id) {
token <- azkit::get_auth_token()

table_endpoint <- Sys.getenv("AZ_TABLE_EP")
table_name <- glue::glue(
"{Sys.getenv('AZ_TABLE_NAME')}(PartitionKey='{dataset}',RowKey='{model_run_id}')"
azkit::read_azure_table_single_entity(
Sys.getenv("AZ_TABLE_NAME"),
dataset,
model_run_id,
Sys.getenv("AZ_TABLE_EP")
)

httr2::request(table_endpoint) |>
httr2::req_url_path(table_name) |>
httr2::req_auth_bearer_token(token$credentials$access_token) |>
httr2::req_headers(
Accept = "application/json;odata=nometadata",
`x-ms-version` = "2019-02-02"
) |>
httr2::req_perform() |>
httr2::resp_body_json()
}
Comment thread
tomjemmett marked this conversation as resolved.

get_results_from_azure <- function(filename) {
Expand Down
12 changes: 6 additions & 6 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,33 +385,33 @@
"description": {
"Package": "azkit",
"Title": "Azure storage authentication toolkit",
"Version": "0.2.6",
"Version": "0.3.0",
"Authors@R": "\n c(person(\n \"Fran\", \"Barton\",\n email = \"francis.barton@nhs.net\",\n role = c(\"aut\", \"cre\"),\n comment = c(ORCID = \"0000-0002-5650-1176\")\n ),\n person(\n \"Tom\", \"Jemmett\",\n email = \"thomas.jemmett@nhs.net\",\n role = \"ctb\"\n ))",
"Description": "Handles authentication and basic tasks with Azure blob storage.",
"License": "MIT + file LICENSE",
"Config/testthat/edition": "3",
"Encoding": "UTF-8",
"Roxygen": "list(markdown = TRUE)",
"RoxygenNote": "7.3.3",
"Depends": "R (>= 4.5.0)",
"Imports": "arrow, AzureAuth, AzureRMR, AzureStor, cli, dplyr, glue,\nhttr2, purrr, rlang, tibble, withr, yyjsonr",
"Suggests": "httpuv, readr, testthat (>= 3.0.0)",
"Config/roxygen2/version": "8.0.0",
"RemoteType": "github",
"RemoteHost": "api.github.com",
"RemoteRepo": "azkit",
"RemoteUsername": "the-strategy-unit",
"RemotePkgRef": "github::the-strategy-unit/azkit",
"RemoteRef": "HEAD",
"RemoteSha": "41ed4da60571cf7e3f4296613fc409857e7b060c",
"RemoteSha": "5bc96225ba3787aaf1a0e8ce21a6683fab0eb086",
"GithubRepo": "azkit",
"GithubUsername": "the-strategy-unit",
"GithubRef": "HEAD",
"GithubSHA1": "41ed4da60571cf7e3f4296613fc409857e7b060c",
"GithubSHA1": "5bc96225ba3787aaf1a0e8ce21a6683fab0eb086",
"NeedsCompilation": "no",
"Packaged": "2026-05-15 11:40:13 UTC; tom",
"Packaged": "2026-05-15 13:12:33 UTC; tom",
"Author": "Fran Barton [aut, cre] (ORCID: <https://orcid.org/0000-0002-5650-1176>),\n Tom Jemmett [ctb]",
"Maintainer": "Fran Barton <francis.barton@nhs.net>",
"Built": "R 4.6.0; ; 2026-05-15 11:40:13 UTC; unix"
"Built": "R 4.6.0; ; 2026-05-15 13:12:33 UTC; unix"
}
},
"base64enc": {
Expand Down