- Fixes the internals of
files_uploadto use new Slack API and migrate off of [deprecatedfiles.uploadmethod](files.upload method)
- Fixes a bug in
slackr_historywhere the function fails to inferposted_from_timeif not provided - Adds default
message_count = 100toslackr_history - Improves test coverage
User-facing changes:
ggslackrnow relies on dots (...) to pass arguments through toggsaveggplot2is now insuggests, so the user doesn't need it installed to useslackr.ggslackrwill prompt to install if it's not already.- Fixes a "bug" with pagination in
slackr_historycausing an almost infinite loop - Fixes a bug in
slackr_savewhereinitial_commentwould do nothing - Improves documentation of
slackr_historyto be more helpful in pointing the user to the Slack API docs
Backend changes:
- Gets rid of default args in some un-exported functions to make tracking down bugs easier
- Adds significant test coverage
- Fixes a bug where specifying specifying
durationhad no effect inslackr_history()if posted_from_time was not specified also. linked issue
- Fixes a bug where specifying a
thread_tsorreply_broadcastinslackrdid nothing
slackrandslackr_botno longer rely onreprex, asprex_rwould fail when an eval environment needed to be specified, but couldn't.
slackr_imsbug fix.- Using
usethis::use_pipe()to import{magrittr}'s pipe.
- Allows
ggslackrto post multiple file types - Fixes a bug in
slackrandslackr_botthat led to garbled output
Fixes to a couple of bugs
- Updated error handling for edge cases when you supply a username with a user token.
- Removes references to
purrr, since it's GPL. - Updates the vignettes
Lots of breaking changes in this release:
bot_user_oauth_tokenhas been removed entirely in favor oftokenslackr_historynow hasmessage_countas it's first argument- Adding the capability to pass the
thread_tsparameter to allslackr_*functions (i.e. allowing you to reply to a message in a thread) - Adding
reply_broadcastcapability inslackrandslackr_msg - Adding
titleandinitial_commentparameters for all functions relying on thefiles.uploadendpoint (basically everything except forslackr,slackr_bot,slackr_msg,slackr_history, andslackr_delete) slackrandslackr_botnow usereprex::prex()in the background, which means that they no longer throw errors the same way as they did before.slackrwill try to be helpful in telling you what went wrong if yourprexoutput contains an error (instead of posting), but it isn't guaranteed to work all of the time. You can prevent this behavior by setting theSLACKR_ERRORSenvironment variable to"IGNORE".
Other changes:
- Significant improvements to documentation, which now aligns with Slack API descriptions
- Significant internal overhauls of how the functions call the API
- Small bug fix for
ggslackr
- Deprecates the
bot_user_oauth_tokenargument forslackr*functions in favor oftoken - Allows users to choose between a user token and a bot token
- Uses
withr::local_options(list(cli.num_colors = 1))inside ofslackrto fix garbled tibble printing. linked issue - Removes the
channel,usernameandicon_emojiparameters forslackr_bot()which were deprecated in version2.1.1and have no effect - Removes the
cacheChannelsparameter forslackr_setup()which was deprecated in version2.1.0 - Removes hard-coded locale settings. linked issue
- Small error handling improvements and other miscellaneous fixes
- Adds
slackr_csv(), which simplifies the process of writing data frames to Slack as csv files - Adds
slackr_teardown(), which reverts the changes made byslackr_setup()by unsetting the environment variables - Adds
create_config_file()to simplify the process of setting up a config file save_slackr()is now deprecated in favor ofslackr_save()andtex_slackr()has been deprecated in favor ofslackr_tex()
- Gets rid of the usage of
slackr_chtrans()in the vast majority of functions, significantly speeding upslackr_***()by limiting API requests
- Fixes a
memoisebug that was causingslackr_chtrans()to fail withmemoise < 2.0.0 - Fixes a bug in the implementation of
slackr_census()that would causeslackr_census()to fail if the user was specifying a cache dir on the disk
- Fixes the vignettes, so they knit again and are displayed on the
pkgdownsite
- Changes a few badly-set function default channels to be
Sys.getenv('SLACK_CHANNEL')instead of'' - Adds a more informative error message on
slackr_upload()when the request returnsnot authedas per #137 - Deprecates some arguments in
slackr_bot()that no longer work (username, channel, icon emoji) that used to work with the old API structure
- HTTP Caching speeds up requests and limits the number of requests we need to make
slackr_history()andslackr_delete()are now implementedusernameandicon_emojiparameters toslackr_***functions now work again- https://matthewrkaye.com/slackr/articles/webhook-setup.html have been added with setup instructions and usage
- Improved error messaging
- Updates to the README and the pkgdown site
- A number of significant back-end changes, thanks to Andrie de Vries, including significant code cleanup, simplification of the API calls, pagination, and more!
- A few more bug fixes and sets up CI with GH Actions
- Documentation and suggested fixes to common bugs
- Fixes to work with new Slack API
- TONS of improvements / additions
- Fixes CRAN issues
- Added
stop()inslackr_upload()if file to upload was not found (via #46)
- Fixed bug introduced by new field names in Slack API
- Added a
NEWS.mdfile to track changes to the package.
- There is a new
slackr_msg()function which behaves slightly differently thantext_slackr() - Versions 1.4+ BREAK THINGS.
- Support has been removed for the "old style" incoming web hooks (see "Setup" in the README for the required incoming web hook URL format).
- the incoming webhook "token" is no longer required or used.