View source: R/dependencies-python.R
| read_py_requirements | R Documentation |
Reads requirements.txt, or pyproject.toml when there is no
requirements.txt, and sorts each entry by whether pip can install it by
name from a package index. Warns as detect_py_dependencies() describes.
read_py_requirements(appdir)
appdir |
Character string. Path to the app directory. |
A list with
packages: the package names, sorted and unique.
requirements: the requirement specs to install from an index, in
file order, with their versions and environment markers.
direct: the entries that point at a URL, a version control
repository or a path, which an index install cannot reach.
ignored: the pip option lines of requirements.txt, which are not
read.
indexed: the names of the uv indexes that [tool.uv.sources] takes
packages from, named by package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.