diff --git a/DESCRIPTION b/DESCRIPTION index 554aa9a..d8e8515 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -42,3 +42,4 @@ LinkingTo: Rcpp, RcppArmadillo License: GPL (>=3) RoxygenNote: 7.2.3 +LazyData: true diff --git a/R/rasterCVA.R b/R/rasterCVA.R index ae9f943..9b38787 100644 --- a/R/rasterCVA.R +++ b/R/rasterCVA.R @@ -20,7 +20,8 @@ #' @return #' Returns a SpatRaster with two layers: change vector angle and change vector magnitude #' @export -#' @examples +#' @examples +#' \dontrun{ #' library(terra) #' pca <- rasterPCA(lsat)$map #' @@ -28,6 +29,7 @@ #' cva <- rasterCVA(pca[[1:2]], pca[[3:4]]) #' cva #' plot(cva) +#' } rasterCVA <- function(x, y, tmf = NULL, nct = NULL, ...) { x <- .toTerra(x) y <- .toTerra(y) diff --git a/man/rasterCVA.Rd b/man/rasterCVA.Rd index 5e895cf..e3dbdb3 100644 --- a/man/rasterCVA.Rd +++ b/man/rasterCVA.Rd @@ -33,6 +33,7 @@ For example for a given pixel in image A and B for the red and nir band the chan Angles are returned *in degree* beginning with 0 degrees pointing 'north', i.e. the y-axis, i.e. the second band. } \examples{ +\dontrun{ library(terra) pca <- rasterPCA(lsat)$map @@ -41,3 +42,4 @@ cva <- rasterCVA(pca[[1:2]], pca[[3:4]]) cva plot(cva) } +}