Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Sep 25, 2024
1 parent 7a5ac5f commit ae94fb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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.5.019
Version: 0.2.5.020
Authors@R: c(
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre")),
person("Bob", "Rudis", role = "aut"),
Expand Down
8 changes: 4 additions & 4 deletions R/get-osmdata-sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ osmdata_sf <- function (q, doc, quiet = TRUE, stringsAsFactors = FALSE) { # noli
# some objects don't have names. As explained in
# src/osm_convert::restructure_kv_mat, these instances do not get an osm_id
# column (the first one), so this is appended here:
if (!"osm_id" %in% names (res$points_kv)[1]) {
if (!"osm_id" %in% names (res$points_kv) [1]) {
res <- fill_kv (res, "points_kv", "points", stringsAsFactors)
}
if (!"osm_id" %in% names (res$polygons_kv)[1]) {
if (!"osm_id" %in% names (res$polygons_kv) [1]) {
res <- fill_kv (res, "polygons_kv", "polygons", stringsAsFactors)
}
kv_df <- grep ("_kv$", names (res))
res[kv_df] <- fix_columns_list (res[kv_df])
res [kv_df] <- fix_columns_list (res [kv_df])

if (missing (q)) {
obj$bbox <- paste (res$bbox, collapse = " ")
Expand Down Expand Up @@ -191,7 +191,7 @@ fill_kv <- function (res, kv_name, g_name, stringsAsFactors) { # nolint


fill_sf_objects <- function (res, obj, type = "points",
stringsAsFactors = FALSE) { # nolint
stringsAsFactors = FALSE) { # nolint

if (!type %in% sf_types) {
stop ("type must be one of ", paste (sf_types, collapse = " "))
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"codeRepository": "https://github.com/ropensci/osmdata/",
"issueTracker": "https://github.com/ropensci/osmdata/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.2.5.019",
"version": "0.2.5.020",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit ae94fb4

Please sign in to comment.