Skip to contents

This function parses a text file or a character string and returns TRUE if it contains Roxygen2 documentation. It uses a regex pattern to identify possible Roxygen2 documentation lines.

Usage

contains_roxygen(input)

Arguments

input

A character string specifying the path to the text file, or a character string containing the text to be checked for Roxygen2 documentation.

Value

A logical value (TRUE or FALSE) indicating whether the input contains Roxygen2 documentation.