Learn R Programming

box (version 1.2.0)

add_comments: Extend code regions to include leading comments and whitespace

Description

Extend code regions to include leading comments and whitespace

Usage

add_comments(refs)

Value

add_comment returns a list of srcrefs corresponding to srcref, but extended to include the preceding comment block.

Arguments

refs

a list of the code region srcrefs to extend.