Skip to content

Commit

Permalink
version 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha authored and cran-robot committed Feb 9, 2022
1 parent 58233d4 commit 61b40ea
Show file tree
Hide file tree
Showing 28 changed files with 1,357 additions and 1,505 deletions.
9 changes: 4 additions & 5 deletions DESCRIPTION
@@ -1,7 +1,7 @@
Package: SpatialKDE
Type: Package
Title: Kernel Density Estimation for Spatial Data
Version: 0.6.2
Version: 0.7.0
URL: https://jancaha.github.io/SpatialKDE/index.html,
https://github.com/JanCaha/SpatialKDE
Authors@R:
Expand All @@ -17,16 +17,15 @@ Description: Calculate Kernel Density Estimation (KDE) for spatial data.
Chainey, S., Tompson, L., Uhlig, S.(2008) <doi:10.1057/palgrave.sj.8350066>.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.1
RoxygenNote: 7.1.2
VignetteBuilder: knitr
LinkingTo: Rcpp
Imports: Rcpp, sf, dplyr, glue, magrittr, rlang, vctrs, methods, raster
Suggests: tmap, sp, knitr, rgdal, rmarkdown, testthat (>= 2.99.0)
Config/testthat/edition: 3
NeedsCompilation: yes
Packaged: 2020-11-28 19:59:11 UTC; Cahik
Packaged: 2022-02-09 14:14:14 UTC; cahik
Author: Jan Caha [aut, cre] (<https://orcid.org/0000-0003-0165-0606>)
Maintainer: Jan Caha <jan.caha@outlook.com>
Repository: CRAN
Date/Publication: 2020-11-28 20:20:03 UTC
Date/Publication: 2022-02-09 14:50:02 UTC
4 changes: 2 additions & 2 deletions LICENSE
@@ -1,2 +1,2 @@
YEAR: 2019
COPYRIGHT HOLDER: Jan Caha
YEAR: 2019
COPYRIGHT HOLDER: Jan Caha
52 changes: 27 additions & 25 deletions MD5
@@ -1,27 +1,29 @@
a0170adf041a0c0c395dc8ac9f26eb43 *DESCRIPTION
82179e94a9c57510eeb0dfa196cd97cb *LICENSE
91cc8b85b843466a4604bb05ca4fd3b2 *NAMESPACE
571c91b77561c0b69b51dd16f6e94d4a *NEWS.md
261b4ed94b2c65db40b1346ea1b5f8b8 *R/RcppExports.R
e11ac6cfc676e4a3d0ebc35c4492e8de *R/create_grid.R
bb39c117653c3bf19fcde4d7aea1dd6c *R/create_raster.R
421b4b80ee4990a23239c1cee0857570 *R/kde.R
ad3f3c64fcdb96e66b1859bd35c48478 *R/utils-pipe.R
ea034c24e4e96a741e65721835b733cf *R/utils.R
6e0dc28feda82e7c39bb6b1638ad036b *R/zzz.R
fc09e35d33437d635f6361e42c35696e *README.md
767fedd67329377d19b3c51c4b258d9d *build/vignette.rds
512913a6d2935ccb9dc5d5dc73640404 *inst/doc/SpatialKDE.R
abf6cca3ed36a52d85d0c50a4c33a8d2 *inst/doc/SpatialKDE.Rmd
275bdb75f9b99aeb5c093728440d7f40 *inst/doc/SpatialKDE.html
fc333f44de04b8cb7aec0ce9c2d3ff15 *man/create_grid.Rd
89e5d758105098f7ca26068280fd22ad *man/create_raster.Rd
ecc37958ddd336aabf053cef9fe7cd64 *man/kde.Rd
5db4161ac31ac74a9d7d20ed242aa88c *DESCRIPTION
43bebc0ba5d3ce21446c287fe0bf9891 *LICENSE
52a03f77558179c042ea140f1c31121d *NAMESPACE
6300ce6b0c6e6321a5a39c4520b790b6 *NEWS.md
7ffdb4f804d86b28bbe7c53a5dc567ef *R/RcppExports.R
eda84079ef0f92d6414353ba96e64ab9 *R/check_message_print.R
4f9366fbe85a68c70f5033494bb11e9f *R/create_grid.R
12dbfc870df197c2fd750b9819082679 *R/create_raster.R
401f2ad8f7e891a84dcee3a806282cad *R/kde.R
8d2487dbf45064f33b08e5a80830b68e *R/utils-pipe.R
58c8bea8c03759294e57d724e20a6d3c *R/utils.R
d8a0ef0059a27e17f51a0adf6e723941 *R/zzz.R
6ac0bbb316720e456b62b06dbca037c2 *README.md
151b05751cf22516d1d7574b497e43c4 *build/vignette.rds
d25adadee98e916fdbe3cf8a70b400a4 *inst/doc/SpatialKDE.R
e7f51fc58e4e4e7373ed0b6b6ab7324d *inst/doc/SpatialKDE.Rmd
bb523ebab9106a66b323c9e723b6bbcb *inst/doc/SpatialKDE.html
d1f7abddd48407e27ee786cfbdd37813 *man/create_grid.Rd
b65d46598aefdfc2e7c33a1d3bab4d39 *man/create_raster.Rd
b8346114fc0cd90a38a2efba48283a4e *man/kde.Rd
1f7896a1b866ff9ae89ba35be7c7b6f1 *man/pipe.Rd
a5a0dbeb761d861d47a0af14d890dcf3 *src/RcppExports.cpp
8973d9d9e4cefb6c4ec9e2749f3f9a5f *src/RcppExports.cpp
8cb810d2b3ca2f4a7f7dd7a2a11707a3 *src/kde.cpp
70b197edb62a1a7250b6a1aa009a5ecd *tests/testthat.R
ff413297bb6d19d6c84ed97b36924de7 *tests/testthat/helper-data.R
63d26094bbd48959aa798b91ed433b25 *tests/testthat/test-create_grids_raster.R
f38c3faf8c8b531fbbdd06043cd3c9bc *tests/testthat/test-kde.R
abf6cca3ed36a52d85d0c50a4c33a8d2 *vignettes/SpatialKDE.Rmd
1233bfcd4c0a99dbfff67b77eed4b232 *tests/testthat.R
c7267a8c79da5341e4f4a6db07aa85bf *tests/testthat/helper-data.R
6ddd4fa7e29e18681a262192e27a029f *tests/testthat/test-create_grids_raster.R
8f687c8cc220f69cf312b0c8764fc24c *tests/testthat/test-kde.R
dd12ba9603adbcd8bf42c37ddf45731a *tests/testthat/test_check_message_print.R
e7f51fc58e4e4e7373ed0b6b6ab7324d *vignettes/SpatialKDE.Rmd
84 changes: 43 additions & 41 deletions NAMESPACE
@@ -1,41 +1,43 @@
# Generated by roxygen2: do not edit by hand

export("%>%")
export(create_grid_hexagonal)
export(create_grid_rectangular)
export(create_raster)
export(kde)
importFrom(Rcpp,evalCpp)
importFrom(dplyr,filter)
importFrom(dplyr,mutate)
importFrom(dplyr,select)
importFrom(glue,glue)
importFrom(glue,glue_collapse)
importFrom(magrittr,"%>%")
importFrom(methods,setMethod)
importFrom(raster,crs)
importFrom(raster,isLonLat)
importFrom(raster,raster)
importFrom(raster,values)
importFrom(raster,xyFromCell)
importFrom(rlang,.data)
importFrom(rlang,enquo)
importFrom(rlang,is_double)
importFrom(rlang,is_integer)
importFrom(rlang,quo_text)
importFrom(sf,st_as_sf)
importFrom(sf,st_bbox)
importFrom(sf,st_buffer)
importFrom(sf,st_centroid)
importFrom(sf,st_convex_hull)
importFrom(sf,st_coordinates)
importFrom(sf,st_covered_by)
importFrom(sf,st_geometry)
importFrom(sf,st_geometry_type)
importFrom(sf,st_intersects)
importFrom(sf,st_is_longlat)
importFrom(sf,st_make_grid)
importFrom(sf,st_sf)
importFrom(sf,st_union)
importFrom(vctrs,vec_cast)
useDynLib(SpatialKDE)
# Generated by roxygen2: do not edit by hand

export("%>%")
export(create_grid_hexagonal)
export(create_grid_rectangular)
export(create_raster)
export(kde)
importFrom(Rcpp,evalCpp)
importFrom(dplyr,filter)
importFrom(dplyr,mutate)
importFrom(dplyr,select)
importFrom(glue,glue)
importFrom(glue,glue_collapse)
importFrom(magrittr,"%>%")
importFrom(methods,setMethod)
importFrom(raster,crs)
importFrom(raster,isLonLat)
importFrom(raster,raster)
importFrom(raster,values)
importFrom(raster,xyFromCell)
importFrom(rlang,.data)
importFrom(rlang,enquo)
importFrom(rlang,is_double)
importFrom(rlang,is_integer)
importFrom(rlang,quo_text)
importFrom(sf,st_as_sf)
importFrom(sf,st_bbox)
importFrom(sf,st_buffer)
importFrom(sf,st_centroid)
importFrom(sf,st_convex_hull)
importFrom(sf,st_coordinates)
importFrom(sf,st_covered_by)
importFrom(sf,st_crs)
importFrom(sf,st_geometry)
importFrom(sf,st_geometry_type)
importFrom(sf,st_intersects)
importFrom(sf,st_is_longlat)
importFrom(sf,st_make_grid)
importFrom(sf,st_sf)
importFrom(sf,st_transform)
importFrom(sf,st_union)
importFrom(vctrs,vec_cast)
useDynLib(SpatialKDE)
52 changes: 28 additions & 24 deletions NEWS.md
@@ -1,24 +1,28 @@
# SpatialKDE 0.6.2

* fix problem with integer `weights`

* reworked tests

# SpatialKDE 0.6.0

* added `weights` parameter to `kde()`


# SpatialKDE 0.4.0

* rename of `create_raster_rectangular()` to `create_grid_rectangular()` and `create_raster_hexagonal()` to `create_grid_hexagonal()` to avoid confusion about the type of outcome.

* fix of inner workings of `create_grid_rectangular()` and `create_grid_hexagonal()`

* fix usage of kernell in function `kde()`

* Added a `NEWS.md` file to track changes to the package.

# SpatialKDE 0.3.2

* Website via pkgdown
# SpatialKDE 0.7.0

* global option `options(SpatialKDE.suppres_message = TRUE)` can be used to suppress using centroids message from `kde()`

# SpatialKDE 0.6.2

* fix problem with integer `weights`

* reworked tests

# SpatialKDE 0.6.0

* added `weights` parameter to `kde()`


# SpatialKDE 0.4.0

* rename of `create_raster_rectangular()` to `create_grid_rectangular()` and `create_raster_hexagonal()` to `create_grid_hexagonal()` to avoid confusion about the type of outcome.

* fix of inner workings of `create_grid_rectangular()` and `create_grid_hexagonal()`

* fix usage of kernell in function `kde()`

* Added a `NEWS.md` file to track changes to the package.

# SpatialKDE 0.3.2

* Website via pkgdown
14 changes: 7 additions & 7 deletions R/RcppExports.R
@@ -1,7 +1,7 @@
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

kde_estimate <- function(fishnet, points, bw, kernel, scaled = FALSE, decay = 1, weights = numeric(0)) {
.Call('_SpatialKDE_kde_estimate', PACKAGE = 'SpatialKDE', fishnet, points, bw, kernel, scaled, decay, weights)
}

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

kde_estimate <- function(fishnet, points, bw, kernel, scaled = FALSE, decay = 1, weights = numeric(0)) {
.Call('_SpatialKDE_kde_estimate', PACKAGE = 'SpatialKDE', fishnet, points, bw, kernel, scaled, decay, weights)
}

16 changes: 16 additions & 0 deletions R/check_message_print.R
@@ -0,0 +1,16 @@
check_message_print <- function(){
print_message <- getOption("SpatialKDE.suppres_message")

if (is.null(print_message)){
return(TRUE)
} else {
if(isFALSE(print_message)){
return(TRUE)
}
else if(isTRUE(print_message)){
return(FALSE)
}
}

return(TRUE)
}

0 comments on commit 61b40ea

Please sign in to comment.