Skip to content

Commit 59de86c

Browse files
committed
try raster::crs
1 parent 15da8a6 commit 59de86c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-ResamplingSpCVBlock.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ test_that("mlr3spatiotempcv indices are the same as blockCV indices: rasterLayer
100100
task = test_make_blockCV_test_task()
101101
testSF = test_make_blockCV_test_df()
102102

103-
rl <- raster::raster(raster::extent(testSF), crs = sf::st_crs(testSF)$input)
103+
rl <- raster::raster(raster::extent(testSF), crs = raster::crs(testSF))
104104
vals <- seq_len(raster::ncell(rl))
105105
rl = raster::setValues(rl, vals)
106106

0 commit comments

Comments
 (0)