View source: R/dependencies-python.R
| detect_py_dependencies | R Documentation |
Reads requirements.txt or pyproject.toml to determine
Python package dependencies. Does NOT parse import statements – the
module-name-to-package-name mapping (e.g., import cv2 maps to
opencv-python) makes import parsing unreliable.
detect_py_dependencies(appdir)
appdir |
Character string. Path to the app directory. |
Prefers requirements.txt over pyproject.toml when both exist.
Warns if neither file is found, or if pyproject.toml has no packages in
the dependencies of its [project] table.
Character vector of unique package names (sorted).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.