% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dependency_tree.R
\name{fetch_all_dependencies}
\alias{fetch_all_dependencies}
\title{Fetch All Dependencies for a Package}
\usage{
fetch_all_dependencies(package_name, get_license = FALSE, max_level = 3)
}
\arguments{
\item{package_name}{A character string specifying the name of the package.}

\item{get_license}{A logical value indicating whether to extract and include license information from DESCRIPTION files (default: `FALSE`).}

\item{max_level}{An integer specifying the maximum depth level for dependency recursion (default: 3).
Set to a higher value to explore deeper dependency layers.}
}
\value{
A nested list representing the dependency tree of the package. If `get_license` is `TRUE`, 
        each package in the tree (including the root package and all dependencies) will have a 
        `license` field containing that package's license extracted from its DESCRIPTION file.
}
\description{
This function builds and retrieves the full dependency tree for a given R package.
}
\examples{
\dontrun{
fetch_all_dependencies("ggplot2")
fetch_all_dependencies("ggplot2", get_license = TRUE)
fetch_all_dependencies("ggplot2", max_level = 5)  # Deeper dependency exploration
}

}
