Learn R Programming

precommit (version 0.1.3)

diff_requires_run_roxygenize: Check if we should run roxygen.

Description

This is the case if a new or replaced/removed line contains a roxygen2 comment in a file that is staged. This is only exported because it's used in a hook script: It's not intended to be called by users of precommit directly.

Usage

diff_requires_run_roxygenize(root = here::here())

Arguments

root

The root of project.

Value

A logical vector of length 1.

Examples

Run this code
# NOT RUN {
diff_requires_run_roxygenize()
# }

Run the code above in your browser using DataLab