Skip to content

Commit

Permalink
test-compat-sf.R: don't write tempfiles outside tempdir() *
Browse files Browse the repository at this point in the history
Relates to CRAN review: #167 (comment).
  • Loading branch information
florisvdh committed Aug 8, 2023
1 parent 6e61abb commit 5631d50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testthat/test-compat-sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ test_that("sf result coercers work", {
}

result <- buffer_longlake(OUTPUT = qgis_tmp_vector())
result_alt <- buffer_longlake(OUTPUT = "ogr:dbname=llbuffer.gpkg table=llbuffer")
on.exit(unlink("llbuffer.gpkg"))
result_alt <- buffer_longlake(
OUTPUT = glue::glue("ogr:dbname={qgis_tmp_vector()} table=llbuffer")
)

# test coercing of qgis_result
result_sf <- sf::st_as_sf(result)
Expand Down

0 comments on commit 5631d50

Please sign in to comment.