This function extracts the version information of imported and suggested packages for a given package from the current R session.
Value
A list with two elements:
- imports
A named list of packages in the "Imports" section along with their corresponding versions
- suggests
A named list of packages in the "Suggests" section along with their corresponding versions
Examples
if (FALSE) { # \dontrun{
deps_list <- data.frame(
package = c("dplyr", "ggplot2", "testthat", "knitr"),
type = c("Imports", "Imports", "Suggests", "Suggests")
)
get_session_dependencies(deps_list)
} # }