Add two convenience functions succeeded() and failed() that make use of httr::http_error() to utils.R
Modify rscloud_DELETE() to wrap the API call in purrr::safely so that it returns a list with result and error
Modify the two functions that use rscloud_DELETE(), space_remove_user() and invitation_rescind() to use usethis::ui_done() and usethis::ui_oops() messages for success / failure
Modify the DESCRIPTION to import purrr and usethis.
Note: I have not changed the name of space_remove_user() but one might consider renaming it to user_remove() to match other functions in users.R.
succeeded()
andfailed()
that make use ofhttr::http_error()
toutils.R
rscloud_DELETE()
to wrap the API call inpurrr::safely
so that it returns a list with result and errorrscloud_DELETE()
,space_remove_user()
andinvitation_rescind()
to useusethis::ui_done()
andusethis::ui_oops()
messages for success / failureNote: I have not changed the name of
space_remove_user()
but one might consider renaming it touser_remove()
to match other functions inusers.R
.