ropensci / concstats

Market Structure, Concentration, and Inequality Measures
https://docs.ropensci.org/concstats
GNU General Public License v3.0
7 stars 2 forks source link

pkgcheck results - master #1

Closed github-actions[bot] closed 9 months ago

github-actions[bot] commented 2 years ago

Checks for concstats (v0.1.2)

git hash: b8a97e73

Important: All failing checks above must be addressed prior to proceeding

Package License: MIT + file LICENSE

github-actions[bot] commented 9 months ago

Checks for concstats (v0.1.6)

git hash: 1065e915

Package License: GPL (>= 3)


1. rOpenSci Statistical Standards (srr package)

This package is in the following category:

:heavy_check_mark: All applicable standards [v0.2.0] have been documented in this package (1569 complied with; 0 N/A standards)

Click to see the report of author-reported standards compliance of the package with links to associated lines of code, which can be re-generated locally by running the srr_report() function from within a local clone of the repository.


2. Package Dependencies

Details of Package Dependency Usage (click to open)

The table below tallies all function calls to all packages ('ncalls'), both internal (r-base + recommended, along with the package itself), and external (imported and suggested packages). 'NA' values indicate packages to which no identified calls to R functions could be found. Note that these results are generated by an automated code-tagging system which may not be entirely accurate. |type |package | ncalls| |:----------|:----------|------:| |internal |base | 92| |internal |concstats | 41| |internal |stats | 5| |imports |NA | NA| |suggests |rmarkdown | NA| |suggests |knitr | NA| |suggests |dplyr | NA| |suggests |devtools | NA| |suggests |kableExtra | NA| |suggests |ggplot2 | NA| |suggests |testthat | NA| |suggests |covr | NA| |linking_to |NA | NA| Click below for tallies of functions used in each package. Locations of each call within this package may be generated locally by running 's <- pkgstats::pkgstats()', and examining the 'external_calls' table.

base

as.numeric (28), sum (28), c (12), data.frame (7), cut (4), format (4), seq (4), length (2), log (2), seq_len (1)

concstats

concstats_firm (4), concstats_entropy (3), concstats_hhi (3), concstats_nrs_eq (3), concstats_palma (3), concstats_dom (2), concstats_gini (2), concstats_grs (2), concstats_hhi_d (2), concstats_hhi_min (2), concstats_top (2), concstats_top3 (2), concstats_top5 (2), concstats_all_comp (1), concstats_all_inequ (1), concstats_all_mstruct (1), concstats_comp (1), concstats_concstats (1), concstats_inequ (1), concstats_mstruct (1), concstats_simpson (1), concstats_sten (1)

stats

quantile (4), na.omit (1)

**NOTE:** No imported packages appear to have associated function calls; please ensure with author that these 'Imports' are listed appropriately.


3. Statistical Properties

This package features some noteworthy statistical properties which may need to be clarified by a handling editor prior to progressing.

Details of statistical properties (click to open)

The package has: - code in R (100% in 6 files) and - 1 authors - 2 vignettes - 1 internal data file - 1 imported package - 22 exported functions (median 29 lines of code) - 22 non-exported functions in R (median 41 lines of code) --- Statistical properties of package structure as distributional percentiles in relation to all current CRAN packages The following terminology is used: - `loc` = "Lines of Code" - `fn` = "function" - `exp`/`not_exp` = exported / not exported All parameters are explained as tooltips in the locally-rendered HTML version of this report generated by [the `checks_to_markdown()` function](https://docs.ropensci.org/pkgcheck/reference/checks_to_markdown.html) The final measure (`fn_call_network_size`) is the total number of calls between functions (in R), or more abstract relationships between code objects in other languages. Values are flagged as "noteworthy" when they lie in the upper or lower 5th percentile. |measure | value| percentile|noteworthy | |:------------------------|-----:|----------:|:----------| |files_R | 6| 40.3| | |files_vignettes | 2| 85.7| | |files_tests | 5| 81.7| | |loc_R | 664| 56.4| | |loc_vignettes | 275| 60.8| | |loc_tests | 1090| 88.2| | |num_vignettes | 2| 89.2| | |data_size_total | 1301| 61.1| | |data_size_median | 1301| 65.7| | |n_fns_r | 44| 52.5| | |n_fns_r_exported | 22| 70.1| | |n_fns_r_not_exported | 22| 43.6| | |n_fns_per_file_r | 6| 71.6| | |num_params_per_fn | 2| 11.9| | |loc_per_fn_r | 36| 82.8| | |loc_per_fn_r_exp | 30| 62.7| | |loc_per_fn_r_not_exp | 41| 86.5| | |rel_whitespace_R | 20| 61.0| | |rel_whitespace_vignettes | 22| 45.3| | |rel_whitespace_tests | 17| 84.0| | |doclines_per_fn_exp | 29| 31.0| | |doclines_per_fn_not_exp | 0| 0.0|TRUE | |fn_call_network_size | 33| 57.5| | ---

3a. Network visualisation

An interactive visualisation of calls between objects in the package has been uploaded as a workflow artefact. To view it, click on results from the latest 'pkgcheck' action, scroll to the bottom, and click on the 'visual-network' artefact.


4. goodpractice and other checks

Details of goodpractice checks (click to open)

#### 3a. Continuous Integration Badges [![R-CMD-check](https://github.com/ropensci/concstats/workflows/R-CMD-check/badge.svg)](https://github.com/ropensci/concstats/actions) [![pkgcheck](https://github.com/ropensci/concstats/workflows/pkgcheck/badge.svg)](https://github.com/ropensci/concstats/actions) **GitHub Workflow Results** | id|name |conclusion |sha | run_number|date | |----------:|:--------------------------|:----------|:------|----------:|:----------| | 7401928303|pages build and deployment |success |1065e9 | 89|2024-01-03 | | 7401928396|pkgcheck |NA |1065e9 | 61|2024-01-03 | | 7401928395|R-CMD-check |NA |1065e9 | 96|2024-01-03 | | 7401928391|test-coverage |success |1065e9 | 43|2024-01-03 | --- #### 3b. `goodpractice` results #### `R CMD check` with [rcmdcheck](https://r-lib.github.io/rcmdcheck/) rcmdcheck found no errors, warnings, or notes #### Test coverage with [covr](https://covr.r-lib.org/) Package coverage: 93.52 #### Cyclocomplexity with [cyclocomp](https://github.com/MangoTheCat/cyclocomp) The following functions have cyclocomplexity >= 15: function | cyclocomplexity --- | --- concstats_entropy | 23 concstats_gini | 23 concstats_hhi | 23 concstats_all_comp | 22 concstats_all_inequ | 22 concstats_all_mstruct | 16 concstats_concstats | 16 concstats_dom | 16 concstats_firm | 16 concstats_grs | 16 concstats_hhi_d | 16 concstats_hhi_min | 16 concstats_nrs_eq | 16 concstats_palma | 16 concstats_simpson | 16 concstats_sten | 16 concstats_top | 16 concstats_top3 | 16 concstats_top5 | 16 #### Static code analyses with [lintr](https://github.com/jimhester/lintr) [lintr](https://github.com/jimhester/lintr) found the following 5 potential issues: message | number of times --- | --- Avoid library() and require() calls in packages | 5


Package Versions

|package |version | |:--------|:---------| |pkgstats |0.1.3.9 | |pkgcheck |0.1.2.11 | |srr |0.0.1.194 |