5  R Package And Environment

Published

June 11, 2025

1 R Packages Used

Here are the R packages used in this analysis.

Code
if (params$show_table && knitr::is_html_output()) {
  harmonisation::get_r_package_info() |>
    reactable::reactable()
}

2 R Platform Information

Here are the R platform environment used in this analysis.

Code
if (params$show_table && knitr::is_html_output()) {
  r_platform_table <- harmonisation::get_r_platform_info()
  r_platform_table |>
    reactable::reactable(
      defaultPageSize = 5
    )
}

3 Data dictionary

Check to see if the data dictionary 20250310_data_dictionary.xlsx exists.

Code
dict_relative_path <- fs::path(
  "data-raw",
  "data_dictionary",
  params$data_dictionary
)


dict_path <- here::here(dict_relative_path)

if (!file.exists(dict_path)) {
  stop(glue::glue("Input data dictionary {dict_path} cannot be found"))
}