Skip to content

Commit

Permalink
Clean code + version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaspons committed Dec 22, 2023
1 parent 84aa7c4 commit ff91984
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: osmapiR
Title: OpenStreetMap API
Version: 0.0.0.13
Version: 0.0.0.14
Authors@R:
person("Joan", "Maspons", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2286-8727"))
Expand Down
2 changes: 0 additions & 2 deletions R/osm_get_objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ osm_get_objects <- function(osm_type, osm_id, version, full_objects = FALSE,
if (format == "R") {
full_obj <- do.call(rbind, full_objL)
} else if (format == "xml") {
full_obj <- full_objL[[1]]

full_obj <- xml2::xml_new_root(full_objL[[1]])
for (i in seq_len(length(full_objL) - 1)) {
for (j in seq_len(xml2::xml_length(full_objL[[i + 1]]))) {
Expand Down

0 comments on commit ff91984

Please sign in to comment.