You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
895 B
34 lines
895 B
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/cloc.R
|
|
\name{cloc}
|
|
\alias{cloc}
|
|
\title{Count lines of code, comments and whitespace in source files/archives}
|
|
\usage{
|
|
cloc(source = ".", extract_with = NULL)
|
|
}
|
|
\arguments{
|
|
\item{source}{file, directory or archive to read from (can be a valid URL)}
|
|
|
|
\item{extract_with}{passed into \code{cloc} command line. This option is only
|
|
needed if cloc is unable to figure out how to extract the contents of
|
|
the input file(s) by itself.}
|
|
}
|
|
\value{
|
|
tibble
|
|
}
|
|
\description{
|
|
Count lines of code, comments and whitespace in source files/archives
|
|
}
|
|
\examples{
|
|
# by dir
|
|
cloc(system.file("extdata", package="cloc"))
|
|
|
|
# by file
|
|
cloc(system.file("extdata", "qrencoder.cpp", package="cloc"))
|
|
|
|
# requires a network connection therefore is set for you to run it manually
|
|
\dontrun{
|
|
# from a url
|
|
cloc("https://rud.is/dl/cloc-1.74.tar.gz")
|
|
}
|
|
}
|
|
|