Python is only involved when extract_lineage() analyzes raw SQL
strings (or falls back to sqlglot for a pipeline it cannot trace in R);
dbplyr pipelines are analyzed by a pure-R engine. The sqlglot engine
needs the reticulate package (a Suggests dependency — install it with
install.packages("reticulate")); dplyneage then declares its sqlglot
dependency via reticulate::py_require(), so sqlglot itself is
provisioned automatically the first time it is needed. Use this to
check availability, or to gate code that extracts lineage from raw SQL
(examples, vignette chunks, Shiny apps). Returns FALSE when
reticulate is not installed. Note that calling it may initialize
Python.
See also
vignette("python-integration") for using your own Python
environment