Skip to content

Commit

Permalink
CRAN version
Browse files Browse the repository at this point in the history
  • Loading branch information
HannaMeyer committed Jun 17, 2024
1 parent 2c2e6a0 commit 119e4f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-aoa.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ test_that("AOA works without a trained model", {
})

test_that("AOA (including LPD) works with raster data and a trained model", {
skip_if_not_installed("randomForest")
dat <- loaddata()
# calculate the AOA of the trained model for the study area:
AOA <- aoa(dat$studyArea, dat$model, LPD = TRUE, maxLPD = 1, verbose = F)
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-knndm.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ test_that("kNNDM works in feature space with hierarchical clustering and raster
})

test_that("kNNDM works in feature space with clustered training points", {
skip_if_not_installed("PCAmixdata")
set.seed(1234)

data(splotdata)
Expand Down Expand Up @@ -297,6 +298,7 @@ test_that("kNNDM works in feature space with categorical variables and predpoint


test_that("kNNDM works in feature space with clustered training points, categorical features ", {
skip_if_not_installed("PCAmixdata")
set.seed(1234)
predictor_stack <- terra::rast(system.file("extdata","predictors_2012-03-25.tif",package="CAST"))
predictors <- c("DEM","TWI", "NDRE.M", "Easting", "Northing", "fct")
Expand Down

0 comments on commit 119e4f9

Please sign in to comment.