View source: R/osmapi_changeset_discussion.R
osm_comment_changeset_discussion | R Documentation |
Add a comment to a changeset and subscribe to the discussion. The changeset must be closed. Requires authentication.
osm_comment_changeset_discussion(changeset_id, comment)
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. |
Returns a data frame with the changeset (same format as osm_get_changesets()
with format = "R"
).
Requires either write_api
or write_changeset_comments
OAuth scope.
Other changeset discussion's functions:
osm_hide_comment_changeset_discussion()
,
osm_subscribe_changeset_discussion()
## Not run:
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
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.