Skip to content

Commit

Permalink
fix tests for sp1.6.1 for #273, thanks to @rsbivand
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed May 22, 2023
1 parent 065a6cf commit 6fe669f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: osmdata
Title: Import 'OpenStreetMap' Data as Simple Features or Spatial Objects
Version: 0.2.2.001
Version: 0.2.2.002
Authors@R: c(
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre")),
person("Bob", "Rudis", role = "aut"),
Expand Down
34 changes: 28 additions & 6 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
"identifier": "osmdata",
"description": "Download and import of 'OpenStreetMap' ('OSM') data as 'sf' or 'sp' objects. 'OSM' data are extracted from the 'Overpass' web server (<https://overpass-api.de/>) and processed with very fast 'C++' routines for return to 'R'.",
"name": "osmdata: Import 'OpenStreetMap' Data as Simple Features or Spatial Objects",
"relatedLink": ["https://docs.ropensci.org/osmdata/", "https://CRAN.R-project.org/package=osmdata"],
"relatedLink": [
"https://docs.ropensci.org/osmdata/",
"https://CRAN.R-project.org/package=osmdata"
],
"codeRepository": "https://github.com/ropensci/osmdata/",
"issueTracker": "https://github.com/ropensci/osmdata/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.2.001",
"version": "0.2.2.002",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -345,11 +348,24 @@
},
"sameAs": "https://CRAN.R-project.org/package=xml2"
},
"SystemRequirements": null
"SystemRequirements": {}
},
"applicationCategory": "DataAccess",
"isPartOf": "https://ropensci.org",
"keywords": ["open0street0map", "openstreetmap", "overpass0API", "OSM", "overpass-api", "r", "cpp", "rstats", "osm", "osm-data", "r-package", "peer-reviewed"],
"keywords": [
"open0street0map",
"openstreetmap",
"overpass0API",
"OSM",
"overpass-api",
"r",
"cpp",
"rstats",
"osm",
"osm-data",
"r-package",
"peer-reviewed"
],
"fileSize": "38808.347KB",
"citation": [
{
Expand Down Expand Up @@ -384,7 +400,10 @@
"issueNumber": "14",
"datePublished": "2017",
"isPartOf": {
"@type": ["PublicationVolume", "Periodical"],
"@type": [
"PublicationVolume",
"Periodical"
],
"volumeNumber": "2",
"name": "Journal of Open Source Software"
}
Expand All @@ -393,7 +412,10 @@
],
"releaseNotes": "https://github.com/ropensci/osmdata/blob/master/NEWS.md",
"readme": "https://github.com/ropensci/osmdata/blob/main/README.md",
"contIntegration": ["https://github.com/ropensci/osmdata/actions?query=workflow%3AR-CMD-check", "https://app.codecov.io/gh/ropensci/osmdata"],
"contIntegration": [
"https://github.com/ropensci/osmdata/actions?query=workflow%3AR-CMD-check",
"https://app.codecov.io/gh/ropensci/osmdata"
],
"developmentStatus": "https://www.repostatus.org/#active",
"review": {
"@type": "Review",
Expand Down
8 changes: 5 additions & 3 deletions tests/testthat/test-elevation.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ test_that ("misc elevation fns", {

qry <- opq (bbox = bbox)
dat <- list (meta = list (bbox = qry$bbox))
expect_silent (
check_bbox (dat, bbox_mat)
)
# 'sp' will soon issue a message here about depending on legacy packages.
# Expectation may be restored once sp-dependency has been removed (#273).
# expect_silent (
check_bbox (dat, bbox_mat)
# )

ti <- get_tile_index (qry$bbox)
expect_s3_class (ti, "data.frame")
Expand Down

0 comments on commit 6fe669f

Please sign in to comment.