Skip to contents

Vectorize all comments from the file

Usage

extract_comments(file)

Arguments

file

file to parse

Value

vector of all comments within a file

Examples

if (FALSE) {
ex_file1 <- "path/file1.R"
# get all comments
cmmts <- extract_comments(ex_file1)
cmmts
}