Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgcheck results - main #14

Open
github-actions bot opened this issue Aug 2, 2023 · 0 comments
Open

pkgcheck results - main #14

github-actions bot opened this issue Aug 2, 2023 · 0 comments

Comments

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

Checks for rasterpic (v0.2.2)

git hash: f0267dfa

  • ✔️ Package is already on CRAN.
  • ✔️ has a 'codemeta.json' file.
  • ✔️ has a 'contributing' file.
  • ✔️ uses 'roxygen2'.
  • ✔️ 'DESCRIPTION' has a URL field.
  • ✔️ 'DESCRIPTION' has a BugReports field.
  • ✔️ Package has at least one HTML vignette
  • ✔️ All functions have examples.
  • ✔️ Package has continuous integration checks.
  • ✔️ Package coverage is 100%.
  • ✔️ R CMD check found no errors.
  • ✔️ R CMD check found no warnings.

Package License: MIT + file LICENSE


1. 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 24
internal graphics 11
internal rasterpic 9
internal tools 2
internal utils 1
imports terra 9
imports png 1
imports sf 1
suggests ggplot2 NA
suggests knitr NA
suggests rmarkdown NA
suggests testthat NA
suggests tidyterra 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(<path/to/repo>)', and examining the 'external_calls' table.

base

c (4), list (4), nrow (2), paste0 (2), rep (2), row (2), tempfile (2), as.double (1), dim (1), for (1), min (1), seq_len (1), tryCatch (1)

graphics

box (11)

rasterpic

asp_ratio (3), rpic_input (2), rpic_read (2), rasterpic_img (1), rpic_crop (1)

terra

rast (2), ext (1), ncol (1), nrow (1), xmax (1), xmin (1), ymax (1), ymin (1)

tools

file_ext (2)

png

readPNG (1)

sf

st_bbox (1)

utils

download.file (1)


2. 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 4 files) and
  • 1 authors
  • 2 vignettes
  • no internal data file
  • 3 imported packages
  • 2 exported functions (median 31 lines of code)
  • 10 non-exported functions in R (median 27 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

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 4 28.3
files_vignettes 2 85.7
files_tests 12 92.5
loc_R 151 17.0
loc_vignettes 127 33.2
loc_tests 653 80.1
num_vignettes 2 89.2
n_fns_r 12 16.1
n_fns_r_exported 2 6.8
n_fns_r_not_exported 10 22.3
n_fns_per_file_r 2 34.7
num_params_per_fn 5 69.6
loc_per_fn_r 28 74.1
loc_per_fn_r_exp 32 64.9
loc_per_fn_r_not_exp 28 75.7
rel_whitespace_R 30 32.1
rel_whitespace_vignettes 47 45.3
rel_whitespace_tests 38 87.8
doclines_per_fn_exp 69 79.2
doclines_per_fn_not_exp 0 0.0 TRUE
fn_call_network_size 5 22.6

2a. 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.


3. goodpractice and other checks

Details of goodpractice checks (click to open)

3a. Continuous Integration Badges

check-full.yaml

GitHub Workflow Results

id name conclusion sha run_number date
5737601596 CRAN Status Monitor success 053339 72 2023-08-02
5738849198 lintr success f0267d 1 2023-08-02
5738927152 pages build and deployment success 6864b3 90 2023-08-02
5738994636 pkgcheck NA f0267d 1 2023-08-02
5738849202 pkgdown-gh-pages success f0267d 69 2023-08-02
5738849197 R-CMD-check success f0267d 242 2023-08-02
5738849201 test-coverage success f0267d 88 2023-08-02
5713081278 update-docs success 9d5b11 35 2023-07-31

3b. goodpractice results

R CMD check with rcmdcheck

rcmdcheck found no errors, warnings, or notes

Test coverage with covr

Package coverage: 100

Cyclocomplexity with cyclocomp

The following function have cyclocomplexity >= 15:

function cyclocomplexity
rpic_input 17

Static code analyses with lintr

lintr found the following 12 potential issues:

message number of times
Avoid library() and require() calls in packages 12


Package Versions

package version
pkgstats 0.1.3.4
pkgcheck 0.1.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants