RConsortium/submissions-pilot2

In ADRG: Document additional R packages used in shiny app

lengning opened this issue · 1 comments

fill in the table in appendix 2 of ADRG
Information needed

  • pkg name
  • version
  • description

I'm able to dynamically generate the package list using a modified version of the snippet in the adrg-prepare.Rmd vignette. I'll commit the final version of the vignette to the repo but here is the snippet:

pkg <- desc::desc_get_deps() %>%
  filter(type == "Imports") %>%
  pull(package)

# custom code to obtain package descriptions
pkg_desc <- tibble::tibble(Package = pkg) %>%
  mutate(Version = purrr::map_chr(Package, ~utils::packageDescription(.x, fields = "Version"))) %>%
  mutate(Description = purrr::map_chr(Package, ~utils::packageDescription(.x, fields = "Description"))) %>%
  arrange(Package)

pkg_desc