Learn R Programming

osmapiR (version 0.2.3)

osm_comment_changeset_discussion: Comment a changeset

Description

Add a comment to a changeset and subscribe to the discussion. The changeset must be closed. Requires authentication.

Usage

osm_comment_changeset_discussion(changeset_id, comment)

Value

Returns a data frame with the changeset (same format as osm_get_changesets() with format = "R").

Arguments

changeset_id

The id of the changeset to comment represented by a numeric or a character value.

comment

The text of the comment to post.

See Also

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

Examples

Run this code
if (FALSE) {
set_osmapi_connection("testing") # use the testing server
changeset <- osm_get_changesets(300626)
updated_changeset <- osm_comment_changeset_discussion(
  changeset_id = changeset$id,
  comment = "A new comment to test osmapiR"
)
updated_changeset
}

Run the code above in your browser using DataLab