Title: | What the Package Does (Title Case) |
---|---|
Description: | More about what it does (maybe more than one line) Use four spaces when indenting paragraphs within the Description. |
Authors: | Who wrote it |
Maintainer: | The package maintainer <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-11-24 14:49:30 UTC |
Source: | https://github.com/etiennebacher/loc |
More about what it does (maybe more than one line) Use four spaces when indenting paragraphs within the Description.
Useful links:
Count lines of code
count_loc( paths = ".", excluded = NULL, include_hidden = FALSE, languages = "R" )
count_loc( paths = ".", excluded = NULL, include_hidden = FALSE, languages = "R" )
paths |
Paths to include. |
excluded |
Paths to exclude. |
Count hidden files and directories? Default is |
|
languages |
Languages to consider. See the list here: https://github.com/XAMPPRocky/tokei?tab=readme-ov-file#supported-languages. |
A data.frame with 4 columns: number of blank lines, comments, code, and whether the count is accurate.
tmp <- tempfile(fileext = ".R") cat(" library(loc) # This is a wrong function foo <- function(x) { x + 1 } ", file = tmp) count_loc(tmp)
tmp <- tempfile(fileext = ".R") cat(" library(loc) # This is a wrong function foo <- function(x) { x + 1 } ", file = tmp) count_loc(tmp)