Skip to contents

Installs the docling Python package (and its dependencies) into a 'reticulate'-managed environment. This is a thin wrapper around reticulate::py_install() that you typically run once after installing doclingr.

Usage

install_docling(
  envname = "r-docling",
  method = c("auto", "virtualenv", "conda"),
  extra = NULL,
  ...
)

Arguments

envname

Name of, or path to, the target Python environment. Defaults to "r-docling", created on first use.

method

Installation method passed to reticulate::py_install(): one of "auto", "virtualenv", or "conda".

extra

Optional character vector of additional pip/conda specs to install alongside Docling (for example "docling[ocr]" or a pinned version such as "docling==2.0.0").

...

Further arguments forwarded to reticulate::py_install().

Value

Invisibly NULL, called for its side effect.

Examples

if (FALSE) { # \dontrun{
install_docling()
} # }