~hrbrmstr/cloc

b67144415172d90fc7059974e3b0a4a272e8418e — boB Rudis 6 years ago 5282b84 + 3c6be8b
Merge pull request #4 from mpadge/master

like cloc()work
3 files changed, 4 insertions(+), 3 deletions(-)

M DESCRIPTION
M R/cloc.R
M man/cloc.Rd
M DESCRIPTION => DESCRIPTION +2 -1
@@ 6,7 6,8 @@ Authors@R: c(
           comment = c(ORCID = "0000-0001-5670-2640")),
    person("Al", "Danial", comment = "cloc perl script", role=c("aut")),
    person("Maƫlle", "Salmon", email = "maelle.salmon@yahoo.se", role = c("ctb")), 
    person("Chris", "Muir", email = "chrismuirrva@gmail.com", role = c("ctb"))
    person("Chris", "Muir", email = "chrismuirrva@gmail.com", role = c("ctb")),
    person("Mark", "Padgham", email = "mark.padgham@email.com", role = c("ctb"))
  )
Description: Counts blank lines, comment lines, and physical lines of source code 
    in source files/trees/archives. An R wrapper to the 'Perl' command-line utility 

M R/cloc.R => R/cloc.R +1 -1
@@ 19,7 19,7 @@
#' # from a url
#' cloc("https://rud.is/dl/cloc-1.74.tar.gz")
#' }
cloc <- function(source, extract_with = NULL) {
cloc <- function(source = ".", extract_with = NULL) {

  perl <- Sys.which("perl")


M man/cloc.Rd => man/cloc.Rd +1 -1
@@ 4,7 4,7 @@
\alias{cloc}
\title{Count lines of code, comments and whitespace in source files/archives}
\usage{
cloc(source, extract_with = NULL)
cloc(source = ".", extract_with = NULL)
}
\arguments{
\item{source}{file, directory or archive to read from (can be a valid URL)}