Skip to content

improve efficiency for doclines counting for src files #97

@mpadge

Description

@mpadge

Currently here:

pkgstats/R/tag-data.R

Lines 294 to 301 in e9183be

#' Count documentation lines in src files.
#'
#' Currently only implemented for C and C++
#' @param tags The output of `get_ctags("src")` or `get_ctags("inst")`
#' @return Modified version of `tags` with additional `doclines` column
#' counting numbers of documentation lines for each tagged object.
#' @noRd
count_doclines_src <- function (tags, path) {

But that opens the source file for every single tag. Needs to be re-written to only read each file once, and then use data from that to iterate over tags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions