Skip to content

Commit

Permalink
Merge branch 'HannaMeyer:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
JanLinnenbrink authored Jun 18, 2024
2 parents 5af0a17 + 119e4f9 commit 0646199
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ URL: https://github.com/HannaMeyer/CAST,
Encoding: UTF-8
LazyData: false
Depends: R (>= 4.1.0)
BugReports: https://github.com/HannaMeyer/CAST/issues/
Imports: caret, stats, utils, ggplot2, graphics, FNN, plyr, zoo, methods, grDevices, data.table, sf, forcats, twosamples, terra, sp
Suggests:
doParallel,
Expand Down
1 change: 1 addition & 0 deletions man/CAST.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 0646199

Please sign in to comment.