get_session_dependencies {risk.assessr} | R Documentation |
Get Dependencies
Description
This function extracts the version information of imported and suggested packages for a given package from the current R session.
Usage
get_session_dependencies(deps_list)
Arguments
deps_list |
A data frame containing the dependency information of the package (provided by calc_dependencies function) |
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
deps_list <- data.frame(
package = c("dplyr", "ggplot2", "testthat", "knitr"),
type = c("Imports", "Imports", "Suggests", "Suggests")
)
get_session_dependencies(deps_list)
[Package risk.assessr version 2.0.0 Index]