model <- train(method = "Maxent", data = data, folds = spatial_blocks, reg = 1, iter = 500, seed = 777)
Error in `.convert_folds()`:
! Folds object format not allowed.
Run `rlang::last_error()` to see where the error occurred.
> spatial_blocks
[1] "cv_spatial"
> rlang::last_error()
<error/rlang_error>
Error in `.convert_folds()`:
! Folds object format not allowed.
---
Backtrace:
1. SDMtune::train(...)
2. SDMtune:::.convert_folds(folds, data)
Run `rlang::last_trace()` to see the full context
Additional information
No response
Reproducible example
[X] I have done my best to provide the steps to reproduce the bug
Describe the bug
Using the new version of blockCV to create spatial blocks with cv_spatial, leads to an error when training the model, follows:
Steps to reproduce the bug
Session information
Additional information
No response
Reproducible example