diff --git a/DESCRIPTION b/DESCRIPTION index 7b7a01e..5c79932 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -21,7 +21,7 @@ URL: https://github.com/tidymodels/spatialsample, https://spatialsample.tidymodels.org BugReports: https://github.com/tidymodels/spatialsample/issues Depends: - R (>= 3.5) + R (>= 3.6) Imports: dplyr (>= 1.0.0), ggplot2, diff --git a/NEWS.md b/NEWS.md index b68825a..4c2aa87 100644 --- a/NEWS.md +++ b/NEWS.md @@ -17,13 +17,13 @@ assessment folds (caused by observations, or observation centroids, falling precisely along grid polygon boundaries). +* In `spatial_nndm_cv()`, passing a single polygon (or multipolygon) to the + `prediction_sites` argument will result in prediction sites being sampled from + that polygon, rather than from its bounding box. + * `get_rsplit()` is now re-exported from the rsample package. This provides a more natural, pipe-able interface for accessing individual splits; `get_rsplit(rset, 1)` is identical to `rset$splits[[1]]`. - -* Passing a single polygon (or multipolygon) to the `prediction_sites` argument - of `spatial_nndm_cv()` will result in prediction sites being sampled from that - polygon, rather than from its bounding box. # spatialsample 0.4.0 diff --git a/cran-comments.md b/cran-comments.md index e8ee052..cc6e8d8 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,12 +1,14 @@ ## Release Summary -This is the 5th CRAN release of spatialsample. This release adds support for spatial nearest-neighbor distance matching cross-validation and updates some URLs and styling. - -## Resubmission - -This is a re-submission. In this version, I have shortened the runtime of an example. +This is the 6th CRAN release of spatialsample. This release fixes bugs in `spatial_block_cv()` and `spatial_nndm_cv()`, and reexports the `get_rsplit()` function from rsample. ## R CMD check results 0 errors | 0 warnings | 0 notes +## revdepcheck results + +We checked 1 reverse dependencies (0 from CRAN + 1 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package. + + * We saw 0 new problems + * We failed to check 0 packages diff --git a/man/spatial_block_cv.Rd b/man/spatial_block_cv.Rd index 3c6649b..15fb991 100644 --- a/man/spatial_block_cv.Rd +++ b/man/spatial_block_cv.Rd @@ -50,7 +50,7 @@ grids built from data in geographic coordinates may exclude observations and grids built from regularly spaced data might have observations fall exactly on the boundary between folds, duplicating them. In spatialsample < 0.5.0, this was 0.00001 for data in a geographic CRS and 0 for data in a planar CRS. -In spatialsample > 0.5.0, this is 0.00001 for all data.} +In spatialsample >= 0.5.0, this is 0.00001 for all data.} } \value{ A tibble with classes \code{spatial_block_cv}, \code{spatial_rset}, \code{rset}, diff --git a/revdep/README.md b/revdep/README.md index 04829a1..24d6e8a 100644 --- a/revdep/README.md +++ b/revdep/README.md @@ -1,29 +1,87 @@ # Platform -|field |value | -|:--------|:---------------------------------------------------------------| -|version |R version 4.2.2 Patched (2022-11-10 r83330) | -|os |Ubuntu 22.04.1 LTS | -|system |x86_64, linux-gnu | -|ui |RStudio | -|language |(EN) | -|collate |en_US.UTF-8 | -|ctype |en_US.UTF-8 | -|tz |America/New_York | -|date |2022-12-09 | -|rstudio |2022.07.2+576 Spotted Wakerobin (desktop) | -|pandoc |2.19.2 @ /usr/lib/rstudio/bin/quarto/bin/tools/ (via rmarkdown) | +|field |value | +|:--------|:----------------------------------------------------------------------------| +|version |R version 4.3.1 (2023-06-16) | +|os |Ubuntu 22.04.3 LTS | +|system |x86_64, linux-gnu | +|ui |RStudio | +|language |(EN) | +|collate |en_US.UTF-8 | +|ctype |en_US.UTF-8 | +|tz |America/New_York | +|date |2023-11-03 | +|rstudio |2023.09.1+494 Desert Sunflower (desktop) | +|pandoc |3.1.1 @ /usr/lib/rstudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown) | # Dependencies -|package |old |new |Δ | -|:-------------|:-----|:----------|:--| -|spatialsample |0.2.1 |0.2.1.9000 |* | -|globals |NA |0.16.2 |* | -|rsample |NA |1.1.1 |* | -|s2 |NA |1.1.1 |* | -|slider |NA |0.3.0 |* | -|vctrs |NA |0.5.1 |* | +|package |old |new |Δ | +|:-------------|:-------|:----------|:--| +|spatialsample |0.4.0 |0.4.0.9000 |* | +|class |7.3-22 |7.3-22 | | +|classInt |0.4-10 |0.4-10 | | +|cli |3.6.1 |3.6.1 | | +|codetools |0.2-19 |0.2-19 | | +|colorspace |2.1-0 |2.1-0 | | +|cpp11 |0.4.6 |0.4.6 | | +|DBI |1.1.3 |1.1.3 | | +|digest |0.6.33 |0.6.33 | | +|dplyr |1.1.3 |1.1.3 | | +|e1071 |1.7-13 |1.7-13 | | +|fansi |1.0.5 |1.0.5 | | +|farver |2.1.1 |2.1.1 | | +|furrr |0.3.1 |0.3.1 | | +|future |1.33.0 |1.33.0 | | +|generics |0.1.3 |0.1.3 | | +|ggplot2 |3.4.4 |3.4.4 | | +|globals |0.16.2 |0.16.2 | | +|glue |1.6.2 |1.6.2 | | +|gtable |0.3.4 |0.3.4 | | +|isoband |0.2.7 |0.2.7 | | +|KernSmooth |2.23-22 |2.23-22 | | +|labeling |0.4.3 |0.4.3 | | +|lattice |0.22-5 |0.22-5 | | +|lifecycle |1.0.3 |1.0.3 | | +|listenv |0.9.0 |0.9.0 | | +|magrittr |2.0.3 |2.0.3 | | +|MASS |7.3-60 |7.3-60 | | +|Matrix |1.6-1.1 |1.6-1.1 | | +|mgcv |1.9-0 |1.9-0 | | +|munsell |0.5.0 |0.5.0 | | +|nlme |3.1-163 |3.1-163 | | +|parallelly |1.36.0 |1.36.0 | | +|pillar |1.9.0 |1.9.0 | | +|pkgconfig |2.0.3 |2.0.3 | | +|proxy |0.4-27 |0.4-27 | | +|purrr |1.0.2 |1.0.2 | | +|R6 |2.5.1 |2.5.1 | | +|RColorBrewer |1.1-3 |1.1-3 | | +|Rcpp |1.0.11 |1.0.11 | | +|rlang |1.1.1 |1.1.1 | | +|rsample |1.2.0 |1.2.0 | | +|s2 |1.1.4 |1.1.4 | | +|scales |1.2.1 |1.2.1 | | +|sf |1.0-14 |1.0-14 | | +|slider |0.3.1 |0.3.1 | | +|stringi |1.7.12 |1.7.12 | | +|stringr |1.5.0 |1.5.0 | | +|tibble |3.2.1 |3.2.1 | | +|tidyr |1.3.0 |1.3.0 | | +|tidyselect |1.2.0 |1.2.0 | | +|units |0.8-4 |0.8-4 | | +|utf8 |1.2.4 |1.2.4 | | +|vctrs |0.6.4 |0.6.4 | | +|viridisLite |0.4.2 |0.4.2 | | +|warp |0.2.1 |0.2.1 | | +|withr |2.5.2 |2.5.2 | | +|wk |0.9.0 |0.9.0 | | # Revdeps +## Failed to check (1) + +|package |version |error |warning |note | +|:--------|:-------|:-----|:-------|:----| +|waywiser |? | | | | + diff --git a/revdep/cran.md b/revdep/cran.md index 782ef68..62d1ce4 100644 --- a/revdep/cran.md +++ b/revdep/cran.md @@ -1,6 +1,6 @@ ## revdepcheck results -We checked 1 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package. +We checked 1 reverse dependencies (0 from CRAN + 1 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package. * We saw 0 new problems * We failed to check 0 packages diff --git a/revdep/failures.md b/revdep/failures.md index 9a20736..ba9b320 100644 --- a/revdep/failures.md +++ b/revdep/failures.md @@ -1 +1,33 @@ -*Wow, no problems at all. :)* \ No newline at end of file +# waywiser + +
+ +* Version: +* GitHub: https://github.com/tidymodels/spatialsample +* Source code: NA +* Number of recursive dependencies: 0 + +
+ +## Error before installation + +### Devel + +``` + + + + + + +``` +### CRAN + +``` + + + + + + +```