osm_search_comment_changeset_discussion: Search changeset comments

View source: R/osmapi_changeset_discussion.R

osm_search_comment_changeset_discussionR Documentation

Search changeset comments

Description

Returns changeset comments that match the specified query. If no query is provided, the most recent changeset comments are returned.

Usage

osm_search_comment_changeset_discussion(
  user,
  from,
  to,
  format = c("R", "xml", "json"),
  tags_in_columns = FALSE
)

Arguments

user

Search for changeset comments created by the user with the given user id (numeric) or display name (character).

from

Beginning date range. See details for the valid formats.

to

End date range. Only works when from is supplied. See details for the valid formats.

format

Format of the output. Can be "R" (default), "xml", or "json".

tags_in_columns

If FALSE (default), the tags of the changesets are saved in a single list column tags containing a data.frame for each changeset with the keys and values. If TRUE, add a column for each key. Ignored if format != "R".

Details

The valid formats for from and to parameters are POSIXt values or characters preferably in ISO 8601 format.

Value

If format = "R", returns a data frame with one comment per If format = "xml", returns a xml2::xml_document. If format = "json", returns a list with the json structure.

See Also

Other changeset discussion's functions: osm_comment_changeset_discussion(), osm_hide_comment_changeset_discussion(), osm_subscribe_changeset_discussion()

Examples

# See the latest changeset comments globally:
osm_search_comment_changeset_discussion()

# Search for changeset comments by a specific user:
osm_search_comment_changeset_discussion(user = "Steve", format = "json")

# Search for changeset comments between January 1st and January 2nd, 2015:
osm_search_comment_changeset_discussion(from = "2015-01-01", to = "2015-01-02", format = "xml")

osmapiR documentation built on Feb. 16, 2026, 1:06 a.m.