Learn R Programming

precommit (version 0.2.2)

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 function is only exported for use in hook scripts, but it's not intended to be called by the end-user directly.

Usage

diff_requires_run_roxygenize(root = here::here())

Arguments

root

The root of project.

Value

A logical vector of length 1.

See Also

Other hook script helpers: dirs_R.cache(), may_require_permanent_cache(), roxygen_assert_additional_dependencies(), roxygenize_with_cache()

Examples

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

Run the code above in your browser using DataLab