cloc_remove_comments: Strip comments and white space from a single source file

View source: R/sloc-rm-comments.R

cloc_remove_commentsR Documentation

Strip comments and white space from a single source file

Description

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

Usage

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"))

hrbrmstr/cloc documentation built on May 1, 2023, 7:34 a.m.