Learn R Programming

box (version 1.1.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)

Arguments

refs

a list of the code region srcrefs to extend.

Value

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