- Fixes the internals of
files_upload
to use new Slack API and migrate off of [deprecatedfiles.upload
method](files.upload method)
- Fixes a bug in
slackr_history
where the function fails to inferposted_from_time
if not provided - Adds default
message_count = 100
toslackr_history
- Improves test coverage
User-facing changes:
ggslackr
now relies on dots (...
) to pass arguments through toggsave
ggplot2
is now insuggests
, so the user doesn't need it installed to useslackr
.ggslackr
will prompt to install if it's not already.- Fixes a "bug" with pagination in
slackr_history
causing an almost infinite loop - Fixes a bug in
slackr_save
whereinitial_comment
would do nothing - Improves documentation of
slackr_history
to 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
duration
had no effect inslackr_history()
if posted_from_time was not specified also. linked issue
- Fixes a bug where specifying a
thread_ts
orreply_broadcast
inslackr
did nothing
slackr
andslackr_bot
no longer rely onreprex
, asprex_r
would fail when an eval environment needed to be specified, but couldn't.
slackr_ims
bug fix.- Using
usethis::use_pipe()
to import{magrittr}
's pipe.
- Allows
ggslackr
to post multiple file types - Fixes a bug in
slackr
andslackr_bot
that 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_token
has been removed entirely in favor oftoken
slackr_history
now hasmessage_count
as it's first argument- Adding the capability to pass the
thread_ts
parameter to allslackr_*
functions (i.e. allowing you to reply to a message in a thread) - Adding
reply_broadcast
capability inslackr
andslackr_msg
- Adding
title
andinitial_comment
parameters for all functions relying on thefiles.upload
endpoint (basically everything except forslackr
,slackr_bot
,slackr_msg
,slackr_history
, andslackr_delete
) slackr
andslackr_bot
now usereprex::prex()
in the background, which means that they no longer throw errors the same way as they did before.slackr
will try to be helpful in telling you what went wrong if yourprex
output 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_ERRORS
environment 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_token
argument 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 ofslackr
to fix garbled tibble printing. linked issue - Removes the
channel
,username
andicon_emoji
parameters forslackr_bot()
which were deprecated in version2.1.1
and have no effect - Removes the
cacheChannels
parameter 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
memoise
bug 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
pkgdown
site
- 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 authed
as 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 implementedusername
andicon_emoji
parameters 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.md
file 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.