Skip to content

Commit

Permalink
Fix CRAN error
Browse files Browse the repository at this point in the history
  • Loading branch information
r-a-dobson committed Jun 11, 2023
1 parent 7bb430a commit dbb5afd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion R/dynamic_proj_covariates.R
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,6 @@ dynamic_proj_covariates <- function(dates,

if (cov.file.type == "csv") {


stack_df <- as.data.frame(cbind(terra::xyFromCell(stack,
1:terra::ncell(stack)),
terra::values(stack)))
Expand Down
12 changes: 0 additions & 12 deletions tests/testthat/test-spatiotemp_thin.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,6 @@ test_that("method day produces smaller data.frame when thinning", {
})


test_that("method day produces data.frame over 0 even when high temporal.dist value",
{
result <- spatiotemp_thin(
occ.data = sample_explan_data,
temporal.method = "day",
temporal.dist = 365,
spatial.split.degrees = 4,
spatial.dist = 10000,
iterations = 2
)
expect_gt(nrow(result), 0)
})

test_that("method DOY produces data.frame", {
result <- spatiotemp_thin(
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-spatiotemp_weights.R
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,4 @@ test_that("Output is adds two rows with sampling effort", {
)
expect_equal(ncol(results), ncol(sample_occ_abs_data_fortest) + 2)
})

0 comments on commit dbb5afd

Please sign in to comment.