No known key found for this signature in database
GPG Key ID: 1D7529BE14E2BBA9
8 changed files with
45 additions and
45 deletions
-
NAMESPACE
-
R/cloc-git.R
-
R/cloc-recognized-languages.r
-
README.Rmd
-
README.md
-
man/cloc_git.Rd
-
man/cloc_recognized_languages.Rd
|
|
@ -8,8 +8,8 @@ export(cloc_git) |
|
|
|
export(cloc_help) |
|
|
|
export(cloc_os) |
|
|
|
export(cloc_pkg) |
|
|
|
export(cloc_recognized_languages) |
|
|
|
export(cloc_remove_comments) |
|
|
|
export(cloc_reognized_languages) |
|
|
|
export(cloc_version) |
|
|
|
import(rstudioapi) |
|
|
|
importFrom(DT,datatable) |
|
|
|
|
|
@ -4,7 +4,7 @@ |
|
|
|
#' @param repo path to git repo; if `repo` is a URL like `git://`, it will be fetched into |
|
|
|
#' a temporary directory |
|
|
|
#' @param commit "`.`" for the current source tree or the commit identifier for a specific commit |
|
|
|
#' @param branch,credentials,progressed passed on to [git2r::clone()]. |
|
|
|
#' @param branch,credentials,progress passed on to [git2r::clone()]. |
|
|
|
#' @return data frame (tibble) |
|
|
|
#' @export |
|
|
|
#' @examples \dontrun{ |
|
|
|
|
|
@ -25,7 +25,7 @@ |
|
|
|
#' @export |
|
|
|
#' @examples |
|
|
|
#' cloc_reognized_languages() |
|
|
|
cloc_reognized_languages <- function() { |
|
|
|
cloc_recognized_languages <- function() { |
|
|
|
|
|
|
|
perl <- Sys.which("perl") |
|
|
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ The following functions are implemented: |
|
|
|
- `cloc_cran`: Count lines of code (etc) from source packages on CRAN |
|
|
|
- `cloc_git`: Count lines of code, comments and whitespace in a git tree |
|
|
|
- `cloc_remove_comments`: Strip comments and white space from a single source file |
|
|
|
- `cloc_reognized_languages`: Return a data frame of 'cloc' recognized languages and associated extensions |
|
|
|
- `cloc_recognized_languages`: Return a data frame of 'cloc' recognized languages and associated extensions |
|
|
|
- `cloc_call`: Call 'cloc.pl' directly with granular control over options |
|
|
|
- `cloc_help`: See the command-line help |
|
|
|
- `cloc_version`: Retrieve the version of the embedded perl script |
|
|
|
|
|
@ -32,7 +32,7 @@ The following functions are implemented: |
|
|
|
tree |
|
|
|
- `cloc_remove_comments`: Strip comments and white space from a single |
|
|
|
source file |
|
|
|
- `cloc_reognized_languages`: Return a data frame of ‘cloc’ recognized |
|
|
|
- `cloc_recognized_languages`: Return a data frame of ‘cloc’ recognized |
|
|
|
languages and associated extensions |
|
|
|
- `cloc_call`: Call ‘cloc.pl’ directly with granular control over |
|
|
|
options |
|
|
|
|
|
@ -13,7 +13,7 @@ a temporary directory} |
|
|
|
|
|
|
|
\item{commit}{"\code{.}" for the current source tree or the commit identifier for a specific commit} |
|
|
|
|
|
|
|
\item{branch, credentials, progressed}{passed on to \code{\link[git2r:clone]{git2r::clone()}}.} |
|
|
|
\item{branch, credentials, progress}{passed on to \code{\link[git2r:clone]{git2r::clone()}}.} |
|
|
|
} |
|
|
|
\value{ |
|
|
|
data frame (tibble) |
|
|
|
|
|
@ -1,10 +1,10 @@ |
|
|
|
% Generated by roxygen2: do not edit by hand |
|
|
|
% Please edit documentation in R/cloc-recognized-languages.r |
|
|
|
\name{cloc_reognized_languages} |
|
|
|
\alias{cloc_reognized_languages} |
|
|
|
\name{cloc_recognized_languages} |
|
|
|
\alias{cloc_recognized_languages} |
|
|
|
\title{Return a data frame of \code{cloc} recognized languages and associated extensions} |
|
|
|
\usage{ |
|
|
|
cloc_reognized_languages() |
|
|
|
cloc_recognized_languages() |
|
|
|
} |
|
|
|
\value{ |
|
|
|
tibble |