From 05785f9e0f5e17431b2156e5b6f368bdd856e930 Mon Sep 17 00:00:00 2001 From: Tristan Goodbody Date: Wed, 8 Feb 2023 11:38:51 -0800 Subject: [PATCH] dont run example --- R/calculate_allocation.R | 2 ++ man/calculate_allocation.Rd | 2 ++ 2 files changed, 4 insertions(+) diff --git a/R/calculate_allocation.R b/R/calculate_allocation.R index 6dda5f16..55e94b14 100644 --- a/R/calculate_allocation.R +++ b/R/calculate_allocation.R @@ -31,6 +31,7 @@ #' Chapman and Hall/CRC. https://doi.org/10.1201/9780203498880 #' #' @examples +#' \dontrun{ #' #--- Load strata raster and existing samples---# #' r <- system.file("extdata", "sraster.tif", package = "sgsR") #' sr <- terra::rast(r) @@ -44,6 +45,7 @@ #' nSamp = 10, #' allocation = "prop" #' ) +#' } #' #' @author Tristan R.H. Goodbody #' diff --git a/man/calculate_allocation.Rd b/man/calculate_allocation.Rd index 01921d1b..9c0c1186 100644 --- a/man/calculate_allocation.Rd +++ b/man/calculate_allocation.Rd @@ -49,6 +49,7 @@ Returns a data.frame of: Determine how many samples to allocate within strata. } \examples{ +\dontrun{ #--- Load strata raster and existing samples---# r <- system.file("extdata", "sraster.tif", package = "sgsR") sr <- terra::rast(r) @@ -62,6 +63,7 @@ calculate_allocation( nSamp = 10, allocation = "prop" ) +} } \references{