parse_requirements_txt: Parse requirements.txt file

View source: R/dependencies-python.R

parse_requirements_txtR Documentation

Parse requirements.txt file

Description

Lines that end in a backslash continue on the next line, as pip reads them, and a ⁠#⁠ at the start of a line or after a space starts a comment. Options that follow a requirement, such as the --hash options that ⁠uv export⁠ and pip-compile write, are dropped from it.

Usage

parse_requirements_txt(path)

Arguments

path

Character string. Path to requirements.txt.

Value

A list as read_py_requirements() returns.


shinyelectron documentation built on Dec. 3, 2026, 9:07 a.m.