% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ontology.R
\name{fetch_ontology_tree}
\alias{fetch_ontology_tree}
\title{Fetch the TCM ontology tree}
\usage{
fetch_ontology_tree(depth = 4L)
}
\arguments{
\item{depth}{Tree depth to return (1--10, default 4).}
}
\value{
A recursive nested list: \code{list(tcm_id, name, name_cn, level, children = list(...))}.
}
\description{
Returns the full ontology as a recursive nested list.
}
\examples{
\dontrun{
tree <- fetch_ontology_tree(depth = 2)
}
}
