Skip to content

Commit

Permalink
remove tmap dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarah Endicott committed Aug 26, 2024
1 parent b2b2ce0 commit 4990ba6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,12 @@ Imports:
methods,
tidyselect,
terra
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
Suggests:
testthat (>= 2.1.0),
knitr,
rmarkdown,
viridis,
tmap,
bench,
gdistance
VignetteBuilder: knitr
Expand Down
2 changes: 1 addition & 1 deletion man/roads-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-getDistFromSource.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test_that("distance to roads has expected values", {
res <- c(fastRough, slowFine, wideCircle, smootherCircle)
names(res) <- c("kwidth = 1, terra", "kwidth = 1, pfocal2", "kwidth = 5, terra",
"kwidth = 5, pfocal2")
tmap::qtm(res %>% terra::`crs<-`(value = "EPSG:5070"), raster.style = "cont")
plot(res %>% terra::`crs<-`(value = "EPSG:5070"))
}

# no difference any more since using terra::distance
Expand Down

0 comments on commit 4990ba6

Please sign in to comment.