Skip to content

Commit

Permalink
test data path
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejohnson51 committed Jul 25, 2023
1 parent 7aa6716 commit 86275b5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added inst/testdata/cities.rds
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/data/prep_test_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ cities = data.frame(city = c("Fort Collins, CO", "Durham, NC", "Raleigh, NC"),
lng = c(-105.110130, -78.898621, -78.6382)) %>%
st_as_sf(coords = c("lng", "lat"), crs = 4326)

saveRDS(cities, "tests/data/cities.rds")
saveRDS(cities, "inst/testdata/cities.rds")

2 changes: 1 addition & 1 deletion tests/testthat/test-climateR.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library(AOI)
library(terra)

cities = readRDS(list.files(pattern = "cities.rds", recursive = TRUE, full.names = TRUE))
cities = readRDS(system.file("testdata/cities.rds", package = "climateR"))

bb = AOI::aoi_buffer(cities[1,], 10)

Expand Down

0 comments on commit 86275b5

Please sign in to comment.