Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify get_sentiments() #151

Merged
merged 1 commit into from
Sep 7, 2019
Merged

Simplify get_sentiments() #151

merged 1 commit into from
Sep 7, 2019

Conversation

jennybc
Copy link
Contributor

@jennybc jennybc commented Sep 6, 2019

I was following a thread that started with R Packages revisions, then went to available::available(), which had me poking here. This seemed like a great candidate for a little switch() action 🙂

The error messages lost a bit of specific verbiage/capitalization, which I could restore if that seems worth it.

@codecov-io
Copy link

codecov-io commented Sep 6, 2019

Codecov Report

Merging #151 into master will increase coverage by 1.11%.
The diff coverage is 40%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #151      +/-   ##
==========================================
+ Coverage   80.15%   81.26%   +1.11%     
==========================================
  Files          13       13              
  Lines         388      379       -9     
==========================================
- Hits          311      308       -3     
+ Misses         77       71       -6
Impacted Files Coverage Δ
R/sentiments.R 40% <40%> (+3.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update feb42b3...d957eaa. Read the comment docs.

@juliasilge juliasilge merged commit 5de0317 into juliasilge:master Sep 7, 2019
@juliasilge
Copy link
Owner

Thanks so much for this improvement! 🙌

@hadley
Copy link

hadley commented Sep 8, 2019

Would you mind if I used this as small case study in https://principles.tidyverse.org?

@juliasilge
Copy link
Owner

@hadley Sure thing! I'm really glad to have all these repetitions of if cleaned up.

@hadley
Copy link

hadley commented Sep 9, 2019

Thanks @juliasilge!

@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants