Comments (2)
Checks for mapSpain (v0.8.0)
git hash: 50e5243a
- ✔️ 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 95.4%.
- ✔️ R CMD check found no errors.
- ✔️ R CMD check found no warnings.
Package License: GPL-3
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 | 316 |
internal | mapSpain | 80 |
internal | stats | 40 |
internal | methods | 2 |
internal | tools | 2 |
internal | graphics | 1 |
imports | sf | 79 |
imports | utils | 15 |
imports | countrycode | 3 |
imports | rappdirs | 3 |
imports | giscoR | NA |
suggests | terra | 6 |
suggests | leaflet | 3 |
suggests | slippymath | 3 |
suggests | png | 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 (45), grep (30), list (24), unique (23), paste0 (20), names (17), as.character (13), try (11), file.path (10), isFALSE (8), vapply (7), nchar (6), unlist (6), url (6), colnames (5), file.exists (5), length (5), merge (4), split (4), strsplit (4), as.double (3), as.numeric (3), do.call (3), options (3), seq_len (3), switch (3), which (3), data.frame (2), file.size (2), gsub (2), lapply (2), max (2), return (2), seq (2), sort (2), suppressWarnings (2), tolower (2), all (1), apply (1), attr (1), by (1), character (1), for (1), getOption (1), grepl (1), min (1), nrow (1), paste (1), rbind (1), readLines (1), readRDS (1), seq_along (1), Sys.Date (1), Sys.getenv (1), tempfile (1), tryCatch (1), unname (1), vector (1), warning (1)
mapSpain
esp_hlp_get_siane (10), esp_dict_region_code (6), esp_get_nuts (5), esp_hlp_all2prov (5), esp_hlp_dwnload_sianedata (5), esp_codelist (4), esp_hlp_all2ccaa (4), esp_get_ccaa (3), esp_hlp_download_siane (3), compose_tile_grid (2), esp_clear_cache (2), esp_codelist$cpro (2), esp_dict_translate (2), esp_hlp_all2nuts (2), esp_hlp_detect_cache_dir (2), esp_nuts.sf (2), addProviderEspTiles (1), dl_t (1), esp_check_access (1), esp_get_can_box (1), esp_get_can_provinces (1), esp_get_capimun (1), esp_get_ccaa_siane (1), esp_get_comarca (1), esp_get_country (1), esp_get_grid_BDN (1), esp_get_grid_BDN_ccaa (1), esp_get_grid_ccaa (1), esp_get_grid_EEA (1), esp_get_grid_ESDAC (1), esp_get_grid_MTN (1), esp_get_grid_prov (1), esp_get_hex_ccaa (1), esp_getTiles (1), esp_hlp_get_bbox (1), esp_set_cache_dir (1), getwms (1)
sf
st_crs (14), st_point (14), st_drop_geometry (9), st_geometry (9), st_sfc (9), st_read (6), st_bbox (5), st_transform (4), st_as_sfc (2), st_intersects (2), st_union (2), st_as_sf (1), st_coordinates (1), st_linestring (1)
stats
df (20), offset (17), end (3)
utils
modifyList (13), data (2)
terra
rast (2), subset (2), project (1), vect (1)
countrycode
countrycode (3)
leaflet
providerTileOptions (1), tileOptions (1), WMSTileOptions (1)
rappdirs
user_config_dir (3)
slippymath
bbox_tile_query (1), bbox_to_tile_grid (1), tile_bbox (1)
methods
new (2)
tools
file_ext (1), md5sum (1)
graphics
grid (1)
png
readPNG (1)
NOTE: Some imported packages appear to have no associated function calls; please ensure with author that these 'Imports' are listed appropriately.
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 33 files) and
- 1 authors
- 5 vignettes
- 6 internal data files
- 5 imported packages
- 39 exported functions (median 34 lines of code)
- 74 non-exported functions in R (median 47 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 | 33 | 90.9 | |
files_vignettes | 5 | 96.9 | |
files_tests | 26 | 97.4 | |
loc_R | 3062 | 90.7 | |
loc_vignettes | 821 | 87.9 | |
loc_tests | 928 | 85.9 | |
num_vignettes | 5 | 97.9 | TRUE |
data_size_total | 1726276 | 97.2 | TRUE |
data_size_median | 50680 | 88.2 | |
n_fns_r | 113 | 79.3 | |
n_fns_r_exported | 39 | 83.5 | |
n_fns_r_not_exported | 74 | 77.4 | |
n_fns_per_file_r | 2 | 32.7 | |
num_params_per_fn | 4 | 54.6 | |
loc_per_fn_r | 46 | 88.1 | |
loc_per_fn_r_exp | 34 | 67.5 | |
loc_per_fn_r_not_exp | 48 | 89.5 | |
rel_whitespace_R | 28 | 94.5 | |
rel_whitespace_vignettes | 34 | 90.9 | |
rel_whitespace_tests | 33 | 90.5 | |
doclines_per_fn_exp | 81 | 85.0 | |
doclines_per_fn_not_exp | 0 | 0.0 | TRUE |
fn_call_network_size | 75 | 74.3 |
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
GitHub Workflow Results
id | name | conclusion | sha | run_number | date |
---|---|---|---|---|---|
5713025680 | Clean pkgdown manually | success | 7b1385 | 36 | 2023-07-31 |
5760994890 | CRAN Status Monitor | success | 3749fe | 93 | 2023-08-04 |
5761632828 | lintr | success | c5c131 | 344 | 2023-08-04 |
5761784548 | pages build and deployment | success | 2e72fb | 127 | 2023-08-04 |
5761772336 | pkgcheck | NA | 50e524 | 2 | 2023-08-04 |
5761632831 | R-CMD-check | success | c5c131 | 792 | 2023-08-04 |
5761776872 | revdepcheck | success | 50e524 | 5 | 2023-08-04 |
5761632832 | rostemplate-gh-pages | success | c5c131 | 309 | 2023-08-04 |
5761632834 | test-coverage | success | c5c131 | 482 | 2023-08-04 |
5761632837 | Update CITATION.cff | success | c5c131 | 54 | 2023-08-04 |
5761636968 | update-docs | success | c5c131 | 150 | 2023-08-04 |
3b. goodpractice
results
R CMD check
with rcmdcheck
R CMD check generated the following note:
- checking data for non-ASCII characters ... NOTE
Note: found 13138 marked UTF-8 strings
R CMD check generated the following check_fail:
- rcmdcheck_non_ascii_characters_in_data
Test coverage with covr
Package coverage: 95.36
Cyclocomplexity with cyclocomp
The following functions have cyclocomplexity >= 15:
function | cyclocomplexity |
---|---|
esp_getTiles | 40 |
esp_hlp_download_siane | 29 |
esp_hlp_dwnload_sianedata | 25 |
esp_get_grid_EEA | 22 |
esp_get_grid_ESDAC | 22 |
esp_get_grid_MTN | 21 |
esp_get_munic | 19 |
esp_get_nuts | 19 |
esp_dict_region_code | 18 |
esp_hlp_detect_cache_dir | 16 |
esp_set_cache_dir | 15 |
Static code analyses with lintr
lintr found the following 23 potential issues:
message | number of times |
---|---|
Avoid library() and require() calls in packages | 19 |
Lines should not be more than 80 characters. | 4 |
Package Versions
package | version |
---|---|
pkgstats | 0.1.3.4 |
pkgcheck | 0.1.2.1 |
from mapspain.
Checks for mapSpain (v0.8.0.9000)
git hash: 1387abd7
- ✔️ 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 96.2%.
- ✔️ R CMD check found no errors.
- ✔️ R CMD check found no warnings.
Package License: GPL-3
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 | 309 |
internal | mapSpain | 81 |
internal | stats | 26 |
internal | methods | 2 |
internal | tools | 2 |
internal | graphics | 1 |
imports | sf | 57 |
imports | utils | 15 |
imports | countrycode | 3 |
imports | rappdirs | 3 |
imports | giscoR | NA |
suggests | terra | 6 |
suggests | leaflet | 3 |
suggests | slippymath | 3 |
suggests | png | 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 (36), grep (30), list (24), unique (23), paste0 (20), names (17), as.character (13), try (11), file.path (10), isFALSE (8), vapply (7), nchar (6), unlist (6), url (6), colnames (5), file.exists (5), length (5), merge (4), split (4), strsplit (4), as.double (3), as.numeric (3), do.call (3), options (3), seq_len (3), switch (3), which (3), data.frame (2), file.size (2), gsub (2), lapply (2), max (2), return (2), seq (2), sort (2), suppressWarnings (2), tolower (2), all (1), apply (1), attr (1), by (1), character (1), for (1), getOption (1), grepl (1), if (1), inherits (1), min (1), nrow (1), paste (1), rbind (1), readLines (1), readRDS (1), seq_along (1), Sys.Date (1), Sys.getenv (1), tempfile (1), tryCatch (1), unname (1), vector (1), warning (1)
mapSpain
esp_hlp_get_siane (10), esp_dict_region_code (6), esp_get_nuts (5), esp_hlp_all2prov (5), esp_hlp_dwnload_sianedata (5), esp_codelist (4), esp_hlp_all2ccaa (4), esp_get_ccaa (3), esp_hlp_download_siane (3), compose_tile_grid (2), esp_clear_cache (2), esp_codelist$cpro (2), esp_dict_translate (2), esp_hlp_all2nuts (2), esp_hlp_detect_cache_dir (2), esp_nuts.sf (2), addProviderEspTiles (1), dl_t (1), esp_check_access (1), esp_detect_cache_dir (1), esp_get_can_box (1), esp_get_can_provinces (1), esp_get_capimun (1), esp_get_ccaa_siane (1), esp_get_comarca (1), esp_get_country (1), esp_get_grid_BDN (1), esp_get_grid_BDN_ccaa (1), esp_get_grid_ccaa (1), esp_get_grid_EEA (1), esp_get_grid_ESDAC (1), esp_get_grid_MTN (1), esp_get_grid_prov (1), esp_get_hex_ccaa (1), esp_getTiles (1), esp_hlp_get_bbox (1), esp_set_cache_dir (1), getwms (1)
sf
st_drop_geometry (10), st_crs (9), st_read (6), st_bbox (5), st_point (5), st_transform (5), st_geometry (4), st_as_sfc (2), st_intersects (2), st_sf (2), st_sfc (2), st_union (2), st_as_sf (1), st_coordinates (1), st_linestring (1)
stats
df (22), end (3), offset (1)
utils
modifyList (13), data (2)
terra
rast (2), subset (2), project (1), vect (1)
countrycode
countrycode (3)
leaflet
providerTileOptions (1), tileOptions (1), WMSTileOptions (1)
rappdirs
user_config_dir (3)
slippymath
bbox_tile_query (1), bbox_to_tile_grid (1), tile_bbox (1)
methods
new (2)
tools
file_ext (1), md5sum (1)
graphics
grid (1)
png
readPNG (1)
NOTE: Some imported packages appear to have no associated function calls; please ensure with author that these 'Imports' are listed appropriately.
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 33 files) and
- 1 authors
- 5 vignettes
- 6 internal data files
- 5 imported packages
- 40 exported functions (median 35 lines of code)
- 75 non-exported functions in R (median 48 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 | 33 | 90.9 | |
files_vignettes | 5 | 96.9 | |
files_tests | 26 | 97.4 | |
loc_R | 2978 | 90.3 | |
loc_vignettes | 822 | 87.9 | |
loc_tests | 997 | 86.9 | |
num_vignettes | 5 | 97.9 | TRUE |
data_size_total | 1731738 | 97.2 | TRUE |
data_size_median | 50683 | 88.2 | |
n_fns_r | 115 | 79.7 | |
n_fns_r_exported | 40 | 84.0 | |
n_fns_r_not_exported | 75 | 77.8 | |
n_fns_per_file_r | 2 | 33.1 | |
num_params_per_fn | 4 | 54.6 | |
loc_per_fn_r | 46 | 88.1 | |
loc_per_fn_r_exp | 36 | 69.1 | |
loc_per_fn_r_not_exp | 48 | 89.6 | |
rel_whitespace_R | 28 | 94.4 | |
rel_whitespace_vignettes | 34 | 90.9 | |
rel_whitespace_tests | 33 | 91.5 | |
doclines_per_fn_exp | 81 | 85.0 | |
doclines_per_fn_not_exp | 0 | 0.0 | TRUE |
fn_call_network_size | 86 | 76.7 |
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
GitHub Workflow Results
id | name | conclusion | sha | run_number | date |
---|---|---|---|---|---|
7532240082 | CITATION.cff | success | 1387ab | 50 | 2024-01-15 |
7530922539 | Clean pkgdown manually | success | 73f50a | 38 | 2024-01-15 |
7532679153 | Clear GHA caches manually | success | 1387ab | 7 | 2024-01-15 |
7532240084 | lintr | success | 1387ab | 385 | 2024-01-15 |
7532348163 | pages build and deployment | success | 5f0fee | 140 | 2024-01-15 |
7531094023 | pages build and deployment with artifacts-next | success | d8ffc8 | 139 | 2024-01-15 |
7533431221 | pkgcheck | NA | 1387ab | 3 | 2024-01-15 |
7532240090 | R-CMD-check | success | 1387ab | 856 | 2024-01-15 |
7532240087 | rostemplate-gh-pages | success | 1387ab | 317 | 2024-01-15 |
7532240083 | test-coverage | success | 1387ab | 499 | 2024-01-15 |
7532240133 | Update CITATION.cff | success | 1387ab | 57 | 2024-01-15 |
7528512735 | update-docs | success | 16b122 | 153 | 2024-01-15 |
3b. goodpractice
results
R CMD check
with rcmdcheck
R CMD check generated the following note:
- checking data for non-ASCII characters ... NOTE
Note: found 13138 marked UTF-8 strings
R CMD check generated the following check_fail:
- rcmdcheck_non_ascii_characters_in_data
Test coverage with covr
Package coverage: 96.18
Cyclocomplexity with cyclocomp
The following functions have cyclocomplexity >= 15:
function | cyclocomplexity |
---|---|
esp_getTiles | 40 |
esp_hlp_download_siane | 29 |
esp_hlp_dwnload_sianedata | 25 |
esp_get_grid_EEA | 22 |
esp_get_grid_ESDAC | 22 |
esp_get_grid_MTN | 21 |
esp_dict_region_code | 18 |
esp_get_munic | 18 |
esp_get_nuts | 18 |
esp_hlp_detect_cache_dir | 16 |
esp_set_cache_dir | 15 |
Static code analyses with lintr
lintr found the following 24 potential issues:
message | number of times |
---|---|
Avoid library() and require() calls in packages | 19 |
Lines should not be more than 80 characters. This line is 101 characters. | 1 |
Lines should not be more than 80 characters. This line is 136 characters. | 1 |
Lines should not be more than 80 characters. This line is 82 characters. | 1 |
Lines should not be more than 80 characters. This line is 89 characters. | 1 |
Lines should not be more than 80 characters. This line is 90 characters. | 1 |
Package Versions
package | version |
---|---|
pkgstats | 0.1.3.9 |
pkgcheck | 0.1.2.11 |
from mapspain.
Related Issues (20)
- Revisar traducciones en gallego, euskera y catalán HOT 1
- Release mapSpain 0.5.0
- Añadir secciones censales HOT 1
- Release mapSpain 0.6.0
- Release mapSpain 0.6.1
- Añadir mapas del INE
- Release mapSpain 0.6.2
- How to offset points when moveCAN is set to TRUE HOT 6
- Problem installing mapSpain in R version 4.2.1 (2022-06-23) HOT 2
- Update leaflet providers to v1.3.1
- Does Leaflet-providersESP work with mapview? HOT 2
- More WMS? HOT 3
- Release mapSpain 0.7.0
- URGENT! Failed CRAN Checks: 2023-02-13
- Release mapSpain 0.8.0
- Echo de menos 3 municipios en el resultado de esp_get_munic_siane HOT 1
- New feature: function for displacing external objects located on Canary Islands
- Release mapSpain 0.9.0
- Tidy documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapspain.