From a50b6735732be6826f91616a53509e35174e9acf Mon Sep 17 00:00:00 2001 From: Mike Mahoney Date: Wed, 17 May 2023 09:39:08 -0400 Subject: [PATCH] Shorten nndm example --- DESCRIPTION | 2 +- NEWS.md | 2 +- R/spatial_nndm_cv.R | 2 +- cran-comments.md | 4 ++++ man/spatial_nndm_cv.Rd | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index c886749..5a37c84 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: spatialsample Title: Spatial Resampling Infrastructure -Version: 0.3.0.9000 +Version: 0.4.0 Authors@R: c( person("Michael", "Mahoney", , "mike.mahoney.218@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2402-304X")), diff --git a/NEWS.md b/NEWS.md index 1fd8212..b094d22 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# spatialsample (development version) +# spatialsample 0.4.0 * `spatial_nndm_cv()` is a new function for nearest neighbor distance matching cross-validation, as described in MilĂ  et al. 2022 diff --git a/R/spatial_nndm_cv.R b/R/spatial_nndm_cv.R index b6d4e19..7325c70 100644 --- a/R/spatial_nndm_cv.R +++ b/R/spatial_nndm_cv.R @@ -59,7 +59,7 @@ #' ames_sf <- sf::st_as_sf(ames, coords = c("Longitude", "Latitude"), crs = 4326) #' #' # Using a small subset of the data, to make the example run faster: -#' spatial_nndm_cv(ames_sf[1:200, ], ames_sf[2001:2200, ]) +#' spatial_nndm_cv(ames_sf[1:100, ], ames_sf[2001:2100, ]) #' #' @export spatial_nndm_cv <- function(data, prediction_sites, ..., diff --git a/cran-comments.md b/cran-comments.md index f60acd1..e8ee052 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -2,6 +2,10 @@ 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. + ## R CMD check results 0 errors | 0 warnings | 0 notes diff --git a/man/spatial_nndm_cv.Rd b/man/spatial_nndm_cv.Rd index 0b322ac..12068cb 100644 --- a/man/spatial_nndm_cv.Rd +++ b/man/spatial_nndm_cv.Rd @@ -72,7 +72,7 @@ data(ames, package = "modeldata") ames_sf <- sf::st_as_sf(ames, coords = c("Longitude", "Latitude"), crs = 4326) # Using a small subset of the data, to make the example run faster: -spatial_nndm_cv(ames_sf[1:200, ], ames_sf[2001:2200, ]) +spatial_nndm_cv(ames_sf[1:100, ], ames_sf[2001:2100, ]) \dontshow{\}) # examplesIf} } \references{