Skip to content

Commit

Permalink
fixes #1630
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Nov 14, 2024
1 parent cf32fed commit b6d84b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/tempfiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
pattrn <- "^spat_.*tif$"
i <- grep(pattrn, basename(ftmp))
ftmp <- ftmp[i]
ff <- list.files(tempdir(), pattern=pattrn, full.names=TRUE)
ff1 <- list.files(tempdir(), pattern=pattrn, full.names=TRUE)
ff2 <- list.files(terraOptions(print=FALSE)$tempdir, pattern = pattrn, full.names = TRUE)
ff <- unique(c(ff1, ff2))
i <- !(basename(ff) %in% basename(ftmp))
ff[i]

Expand Down

0 comments on commit b6d84b9

Please sign in to comment.