Coder Social home page Coder Social logo

ropenspain / mapspain Goto Github PK

View Code? Open in Web Editor NEW
40.0 40.0 3.0 1.53 GB

R package with the administrative boundaries of Spain, including CCAA, provinces and municipalities

Home Page: https://ropenspain.github.io/mapSpain/

License: GNU General Public License v3.0

R 100.00%
administrative-boundaries ccaa cran ggplot2 gis gisco ign maps municipalities provinces r r-package ropenspain rstats spain spatial static-tiles tiles

mapspain's People

Contributors

actions-user avatar dependabot[bot] avatar dieghernan avatar github-actions[bot] avatar imgbot[bot] avatar imgbotapp avatar rhijmans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mapspain's Issues

Problem installing mapSpain in R version 4.2.1 (2022-06-23)

Hi there,
I recently created fabolous plots using mapSpain (great work with the package!).

However after upgrade to Ubuntu 22 and R to 4.2.1 versions, I have the following error message when trying to install/update mapSpain:

`*** caught segfault ***
address 0x5564c5fc3920, cause 'memory not mapped'
An irrecoverable exception occurred. R is aborting now ...
Segmentation fault (core dumped)
ERROR: lazy loading failed for package ‘mapSpain’

  • removing ‘/home/antonio/R/x86_64-pc-linux-gnu-library/4.2/mapSpain’
    Warning messages:
    1: In i.p(...) : installation of package ‘raster’ had non-zero exit status
    2: In i.p(...) :
    installation of package ‘/tmp/RtmpmQ9QCs/file40c953f26776/mapSpain_0.6.2.tar.gz’ had non-zero exit status`

Any idea will be welcomed!

Release mapSpain 0.7.0

Prepare for release:

  • git pull
  • Check current CRAN check results
  • Check if any deprecation processes should be advanced, as described in Gradual deprecation
  • Polish NEWS
  • devtools::build_readme()
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • rhub::check_for_cran()
  • revdepcheck::revdep_check(num_workers = 4)
  • Update cran-comments.md
  • git push
  • Draft blog post

Submit to CRAN:

  • usethis::use_version('minor')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • git push
  • usethis::use_github_release()
  • usethis::use_dev_version()
  • git push
  • Finish blog post
  • Tweet
  • Add link to blog post in pkgdown news menu

Release mapSpain 0.3.1

Prepare for release:

Submit to CRAN:

  • usethis::use_version('patch')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • usethis::use_github_release()
  • usethis::use_dev_version()

Typos on translation

From the examples

vals <- c(
  "La Rioja", "Sevilla", "Madrid",
  "Jaen", "Orense", "Baleares"
)
esp_dict_translate(vals)
#> [1] "La Rioja"         "Seville"          "Madrid"           "Jaen"            
#> [5] "Ourense"          "Balearic Islands"
esp_dict_translate(vals, lang = "es")
#> [1] "La Rioja" "Sevilla"  "Madrid"   "Jaen"     "Orense"   "Baleares"
esp_dict_translate(vals, lang = "ca")
#> [1] "La Rioja"      "Sevilla"       "Madrid"        "Jaen"         
#> [5] "Ourense"       "Illes Balears"

In Spanish should be "Jaén", not "Jaen".

Review translator

Release mapSpain 0.2.3

Prepare for release:

Submit to CRAN:

  • usethis::use_version('patch')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • usethis::use_github_release()
  • usethis::use_dev_version()

URGENT! Failed CRAN Checks: 2023-02-13

CRAN checks for mapSpain resulted in one or more (WARNING,ERROR)s:

See the table below for a summary of the checks run by CRAN:

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.7.0 10.04 177.18 187.22 OK NA
r-devel-linux-x86_64-debian-gcc 0.7.0 6.93 129.08 136.01 OK NA
r-devel-linux-x86_64-fedora-clang 0.7.0 NA NA 218.95 NOTE NA
r-devel-linux-x86_64-fedora-gcc 0.7.0 NA NA 235.16 NOTE NA
r-devel-windows-x86_64 0.7.0 19.00 183.00 202.00 ERROR NA
r-patched-linux-x86_64 0.7.0 9.99 165.81 175.80 OK NA
r-release-linux-x86_64 0.7.0 8.73 162.93 171.66 OK NA
r-release-macos-arm64 0.7.0 NA NA 62.00 OK NA
r-release-macos-x86_64 0.7.0 NA NA 82.00 OK NA
r-release-windows-x86_64 0.7.0 16.00 189.00 205.00 OK NA
r-oldrel-macos-arm64 0.7.0 NA NA 55.00 OK NA
r-oldrel-macos-x86_64 0.7.0 NA NA 85.00 OK NA
r-oldrel-windows-ix86+x86_64 0.7.0 21.00 183.00 204.00 OK NA

All details and logs are available here: https://cran.r-project.org/web/checks/check_results_mapSpain.html

Release mapSpain 0.6.2

Prepare for release:

  • git pull
  • Check current CRAN check results
  • Polish NEWS
  • devtools::build_readme()
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • rhub::check_for_cran()
  • revdepcheck::revdep_check(num_workers = 4)
  • Update cran-comments.md
  • git push

Submit to CRAN:

  • usethis::use_version('patch')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • git push
  • usethis::use_github_release()
  • usethis::use_dev_version()
  • git push

Release mapSpain 0.2.2

Prepare for release:

Submit to CRAN:

  • usethis::use_version('patch')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • usethis::use_github_release()
  • usethis::use_dev_version()

pkgcheck results - main

Checks for mapSpain (v0.8.0)

git hash: 3749feaf

  • ✔️ Package is already on CRAN.
  • ✔️ has a 'codemeta.json' file.
  • ✔️ has a 'contributing' file.
  • ✖️ The following function has no documented return value: [esp_get_comarca]
  • ✔️ 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.6%.
  • ✔️ R CMD check found no errors.
  • ✔️ R CMD check found no warnings.

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

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 313
internal mapSpain 79
internal stats 40
internal methods 2
internal tools 2
internal graphics 1
imports sf 73
imports utils 12
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 (46), grep (32), unique (23), list (21), paste0 (20), names (17), as.character (13), try (11), file.path (10), vapply (7), nchar (6), unlist (6), url (6), colnames (5), file.exists (5), isFALSE (5), length (5), merge (4), split (4), strsplit (4), which (4), as.double (3), as.numeric (3), do.call (3), options (3), seq_len (3), switch (3), data.frame (2), file.size (2), gsub (2), lapply (2), max (2), return (2), seq (2), sort (2), suppressWarnings (2), Sys.Date (2), tolower (2), apply (1), attr (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.getenv (1), tempfile (1), tryCatch (1), unname (1), vector (1), warning (1)

mapSpain

esp_hlp_get_siane (10), esp_dict_region_code (6), esp_codelist (5), esp_get_nuts (5), esp_hlp_all2prov (5), esp_hlp_dwnload_sianedata (5), 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_hlp_all2nuts (2), esp_hlp_detect_cache_dir (2), esp_nuts.sf (2), addProviderEspTiles (1), dl_t (1), esp_check_access (1), esp_dict_translate (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_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_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 (10), 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 52 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 3209 91.3
loc_vignettes 828 88.0
loc_tests 928 85.9
num_vignettes 5 97.9 TRUE
data_size_total 1722805 97.2 TRUE
data_size_median 50376 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 52 91.2
rel_whitespace_R 27 94.8
rel_whitespace_vignettes 34 91.0
rel_whitespace_tests 33 90.5
doclines_per_fn_exp 82 85.3
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

R-CMD-check

GitHub Workflow Results

id name conclusion sha run_number date
5713025680 Clean pkgdown manually success 7b1385 36 2023-07-31
5737497480 CRAN Status Monitor success 7b1385 92 2023-08-02
5541603319 lint success 7b1385 341 2023-07-13
5759427187 lintr success 3749fe 342 2023-08-04
5759535932 pages build and deployment success e4332b 124 2023-08-04
5759441659 pkgcheck NA 3749fe 1 2023-08-04
5759427202 R-CMD-check success 3749fe 790 2023-08-04
5759427192 rostemplate-gh-pages success 3749fe 307 2023-08-04
5759427191 test-coverage success 3749fe 480 2023-08-04

3b. goodpractice results

R CMD check with rcmdcheck

R CMD check generated the following note:

  1. checking data for non-ASCII characters ... NOTE
    Note: found 13138 marked UTF-8 strings

R CMD check generated the following check_fail:

  1. rcmdcheck_non_ascii_characters_in_data

Test coverage with covr

Package coverage: 95.61

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 24 potential issues:

message number of times
Avoid library() and require() calls in packages 20
Lines should not be more than 80 characters. 4


Package Versions

package version
pkgstats 0.1.3.4
pkgcheck 0.1.2.1

Cache folder issue on CRAN

From: Prof Brian Ripley:

Dear maintainer,

Please see the problems shown on
https://cran.r-project.org/web/checks/check_results_mapSpain.html.

Please correct before 2021-09-19 to safely retain your package on CRAN.

Do remember to look at the 'Additional issues'.

The CRAN Team

Use of ~/.cache/mapSpain is prohibited by the CRAN policy, as is leaving
files anywhere on the file system.

donttest results
* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/mapSpain.Rcheck’
* using R Under development (unstable) (2021-09-04 r80854)
* using platform: x86_64-pc-linux-gnu (64-bit)
* using session charset: UTF-8
* checking for file ‘mapSpain/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘mapSpain’ version ‘0.3.0’
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘mapSpain’ can be installed ... OK
* checking package directory ... OK
* checking ‘build’ directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking loading without being on the library search path ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking contents of ‘data’ directory ... OK
* checking data for non-ASCII characters ... NOTE
  Note: found 13084 marked UTF-8 strings
* checking LazyData ... OK
* checking data for ASCII and uncompressed saves ... OK
* checking R/sysdata.rda ... OK
* checking installed files from ‘inst/doc’ ... OK
* checking files in ‘vignettes’ ... OK
* checking examples ... [18s/18s] OK
* checking examples with --run-donttest ... [38s/49s] OK
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
  Running ‘testthat.R’ [106s/128s]
 [106s/128s] OK
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes in ‘inst/doc’ ... OK
* checking re-building of vignette outputs ... OK
* checking PDF version of manual ... OK
* checking for non-standard things in the check directory ... OK
* checking for detritus in the temp directory ... OK
* checking for new files in some other directories ... NOTE
Found the following files/directories:
  ‘~/.cache/mapSpain’ ‘~/.cache/mapSpain/IDErioja’
  ‘~/.cache/mapSpain/IDErioja/IDErioja_5_15_11.png’
  ‘~/.cache/mapSpain/IDErioja/IDErioja_8_125_94.png’
  ‘~/.cache/mapSpain/IDErioja/IDErioja_8_125_95.png’
  ‘~/.cache/mapSpain/IDErioja/IDErioja_8_126_94.png’
  ‘~/.cache/mapSpain/IDErioja/IDErioja_8_126_95.png’
  ‘~/.cache/mapSpain/IGNBase.Orto’
  ‘~/.cache/mapSpain/IGNBase.Orto/IGNBase.Orto_5_15_11.png’
  ‘~/.cache/mapSpain/RedTransporte.Carreteras’
  ‘~/.cache/mapSpain/RedTransporte.Carreteras/RedTransporte.Carreteras_bbox3857_res512_-357008.108032291_5114332.44717229_-178805.997002973_5292534.55820161.png’
  ‘~/.cache/mapSpain/RedTransporte.Carreteras/RedTransporte.Carreteras_bbox3857_res512_-419699.97163218_4963617.2803763_-419589.97163218_4963727.2803763.png’
  ‘~/.cache/mapSpain/mapSpain_cache_dir’
  ‘~/.cache/mapSpain/rivernames.rda’
  ‘~/.cache/mapSpain/se89_10_hidro_demc_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_10_hidro_demc_a_y.gpkg’
  ‘~/.cache/mapSpain/se89_10_hidro_demt_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_10_hidro_demt_a_y.gpkg’
  ‘~/.cache/mapSpain/se89_10_hidro_rio_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_10_hidro_rio_l_x.gpkg’
  ‘~/.cache/mapSpain/se89_3_admin_ccaa_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_3_admin_ccaa_a_y.gpkg’
  ‘~/.cache/mapSpain/se89_3_admin_muni_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_3_admin_muni_a_y.gpkg’
  ‘~/.cache/mapSpain/se89_3_admin_prov_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_3_admin_prov_a_y.gpkg’
  ‘~/.cache/mapSpain/se89_3_hidro_demc_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_3_hidro_demc_a_y.gpkg’
  ‘~/.cache/mapSpain/se89_3_hidro_demt_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_3_hidro_demt_a_y.gpkg’
  ‘~/.cache/mapSpain/se89_3_hidro_rio_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_3_hidro_rio_l_x.gpkg’
  ‘~/.cache/mapSpain/se89_3_hidro_rio_l_y.gpkg’
  ‘~/.cache/mapSpain/se89_3_orog_hipso_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_3_orog_hipso_a_y.gpkg’
  ‘~/.cache/mapSpain/se89_3_urban_capimuni_p_x.gpkg’
  ‘~/.cache/mapSpain/se89_3_urban_capimuni_p_y.gpkg’
  ‘~/.cache/mapSpain/se89_3_vias_ctra_l_x.gpkg’
  ‘~/.cache/mapSpain/se89_3_vias_ctra_l_y.gpkg’
  ‘~/.cache/mapSpain/se89_3_vias_ffcc_l_x.gpkg’
  ‘~/.cache/mapSpain/se89_3_vias_ffcc_p_x.gpkg’
  ‘~/.cache/mapSpain/se89_6m5_hidro_demc_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_6m5_hidro_demc_a_y.gpkg’
  ‘~/.cache/mapSpain/se89_6m5_hidro_demt_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_6m5_hidro_demt_a_y.gpkg’
  ‘~/.cache/mapSpain/se89_6m5_orog_hipso_a_x.gpkg’
  ‘~/.cache/mapSpain/se89_6m5_orog_hipso_a_y.gpkg’
  ‘~/.cache/mapSpain/se89_6m5_orog_hipso_l_x.gpkg’
  ‘~/.cache/mapSpain/se89_6m5_orog_hipso_l_y.gpkg’
* DONE

Status: 2 NOTEs
See
  ‘/data/blackswan/ripley/R/packages/tests-devel/mapSpain.Rcheck/00check.log’
for details.


Time 3:56.59, 195.17 + 8.32

How to offset points when moveCAN is set to TRUE

Hi, I have a question regarding plotting Spain's map with the moveCAN option set to TRUE. I also want to plot some points (in decimal format, using ggplot2's geom_point() function) on top of the map, the problem is that obviously the points corresponding to the Canary Islands are plotted in their original geographical position instead of in the new, moved location:

image

I guess I have to offset the coordinates of those points by the same factor used to move the islands, but after reading through the code I don't know how to do that. Could you please point me in the right direction? Thanks.

Release mapSpain 0.6.0

Prepare for release:

  • Check current CRAN check results
  • Polish NEWS
  • devtools::build_readme()
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • rhub::check_for_cran()
  • revdepcheck::revdep_check(num_workers = 4)
  • Update cran-comments.md
  • Review pkgdown reference index for, e.g., missing topics
  • Draft blog post

Submit to CRAN:

  • usethis::use_version('major')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • usethis::use_github_release()
  • usethis::use_dev_version()
  • Finish blog post
  • Tweet
  • Add link to blog post in pkgdown news menu

Release mapSpain 0.2.0

Prepare for release:

  • Check current CRAN check results
  • Polish NEWS
  • devtools::build_readme()
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • revdepcheck::revdep_check(num_workers = 4)
  • devtools::check_win_devel()
  • rhub::check_for_cran()
  • Update cran-comments.md
  • Review pkgdown reference index for, e.g., missing topics

Submit to CRAN:

  • usethis::use_version('minor')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • usethis::use_github_release()
  • usethis::use_dev_version()
  • Tweet

Release mapSpain 0.6.1

Prepare for release:

  • Check current CRAN check results
  • Polish NEWS
  • devtools::build_readme()
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • rhub::check_for_cran()
  • revdepcheck::revdep_check(num_workers = 4)
  • Update cran-comments.md

Submit to CRAN:

  • usethis::use_version('patch')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • usethis::use_github_release()
  • usethis::use_dev_version()

Release mapSpain 0.5.0

Prepare for release:

  • Check current CRAN check results
  • Polish NEWS
  • devtools::build_readme()
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • rhub::check_for_cran()
  • revdepcheck::revdep_check(num_workers = 4)
  • Update cran-comments.md
  • Review pkgdown reference index for, e.g., missing topics
  • Draft blog post

Submit to CRAN:

  • usethis::use_version('minor')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • usethis::use_github_release()
  • usethis::use_dev_version()
  • Finish blog post
  • Tweet
  • Add link to blog post in pkgdown news menu

Release mapSpain 0.2.1

Prepare for release:

Submit to CRAN:

  • usethis::use_version('patch')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • usethis::use_github_release()
  • usethis::use_dev_version()

Future improvements

Notes

cartography is officially on maintenance mode. Consider the migration to another package, as tmap.

Roadmap

  • Add vignette on CRAN
  • Move plots to tmap
  • Refactor test files - possible running some test only on releases, via version assessment home <- length(unclass(packageVersion("PKGNAME"))[[1]]) == 4

Release mapSpain 0.3.0

Prepare for release:

  • Check current CRAN check results
  • Polish NEWS
  • devtools::build_readme()
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel() - Update URL on vignette
  • rhub::check_for_cran()
  • revdepcheck::revdep_check(num_workers = 4)
  • Update cran-comments.md
  • Review pkgdown reference index for, e.g., missing topics
  • Draft blog post

Submit to CRAN:

  • usethis::use_version('minor')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • usethis::use_github_release()
  • usethis::use_dev_version()
  • Finish blog post
  • Tweet
  • Add link to blog post in pkgdown news menu

Release mapSpain 0.4.0

Prepare for release:

  • Check current CRAN check results
  • Polish NEWS
  • devtools::build_readme()
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • rhub::check_for_cran()
  • revdepcheck::revdep_check(num_workers = 4)
  • Update cran-comments.md
  • Review pkgdown reference index for, e.g., missing topics
  • Draft blog post

Submit to CRAN:

  • usethis::use_version('minor')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • usethis::use_github_release()
  • usethis::use_dev_version()
  • Finish blog post
  • Tweet
  • Add link to blog post in pkgdown news menu

Does Leaflet-providersESP work with mapview?

I find that Leaflet-providersESP does not work with mapview and the map.types option. Is that correct?

If I run the Earthquakes in Tenerife example I get the expected result, which are shown on the web.

But using mapview does not work. Even if is does work with standard Leaflet-providers

library(mapview)
mapview(Tenerife.leaf)

mapview(Tenerife.leaf, map.type = "OpenTopoMap")

mapview(Tenerife.leaf, map.type = "IDErioja")

Created on 2022-11-10 with reprex v2.0.2

Bug en shape CCAA

EFE26AE8-3E58-45DA-A832-AF75C126533A

Reportado por @congosto
Parece haber un bug en esp_get_ccaa() (no en la version de SIANE) y únicamente en tmap.

  • Intentar reproducir
  • Investigar y arreglar

Add national grid data

Release mapSpain 0.9.0

Prepare for release:

  • git pull
  • Check current CRAN check results
  • Polish NEWS
  • urlchecker::url_check()
  • devtools::build_readme()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • revdepcheck::revdep_check(num_workers = 4)
  • Update cran-comments.md
  • git push
  • Draft blog post

Submit to CRAN:

  • usethis::use_version('minor')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • Finish & publish blog post
  • Add link to blog post in pkgdown news menu
  • usethis::use_github_release()
  • usethis::use_dev_version(push = TRUE)
  • Tweet

Release mapSpain 0.8.0

Prepare for release:

  • git pull
  • Check current CRAN check results
  • Polish NEWS
  • urlchecker::url_check()
  • devtools::build_readme()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • revdepcheck::revdep_check(num_workers = 4)
  • Update cran-comments.md
  • git push
  • Draft blog post

Submit to CRAN:

  • usethis::use_version('minor')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • Add preemptive link to blog post in pkgdown news menu
  • usethis::use_github_release()
  • usethis::use_dev_version(push = TRUE)
  • Finish blog post
  • Tweet

Echo de menos 3 municipios en el resultado de esp_get_munic_siane

En la ejecución del siguiente código:

municipios <- esp_get_munic_siane(epsg = 4326, moveCAN = FALSE, resolution = 10) 
nrow(municipios)

El resultado son 8.209 registros.

municipios <- municipios %>% 
  filter(!is.na(name))
nrow(municipios)

Tras el filtrado, aparecen 8.128 (en lugar de 8.131).

En el resultado no aparecen 3 municipios:

CODIGO_INE	NOMBRE	nombre_provincia
34242	Villodrigo	Palencia
39101	Valle de Villaverde	Cantabria
48074	Urduña/Orduña	Bizkaia

No estoy seguro del sitio correcto para abrir el issue porque no sé si es un problema del dato en origen del IGN.

¡Muchas gracias por este pedazo de librería!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.