Pass in a path to a source file and retrieve a version of the source file without comments (or white space).

cloc_remove_comments(source_file)

Arguments

source_file

path to source file

Value

character vector containing only code blocks

Examples

cloc_remove_comments(system.file("extdata", "qrencoder.cpp", package="cloc"))