Skip to contents

This is a helper function for extract_function_docs.

Usage

extract_doc_section(doc_lines, section_keyword)

Arguments

doc_lines

A character vector of lines from a function's documentation block

section_keyword

The keyword to search for in the documentation block, e.g., '@param'

Value

The extracted section as a character string or list