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

refactor: rm dependency on stringr #88

Merged
merged 11 commits into from
Jan 27, 2023
Merged

refactor: rm dependency on stringr #88

merged 11 commits into from
Jan 27, 2023

Conversation

maelle
Copy link
Member

@maelle maelle commented Jan 26, 2023

Fix #87

@maelle maelle requested a review from zkamvar January 26, 2023 10:30
@maelle maelle marked this pull request as ready for review January 26, 2023 10:32
@@ -0,0 +1,26 @@
# Replacements for stringr functions
# to preserve the argument order + nice name
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I absolutely love this solution! 💯

str_replace(string, pattern, "")
}

str_remove_all <- function(string, pattern) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use this function, but I'm okay keeping it

Copy link
Member

@zkamvar zkamvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YESSSSSS! 🎉

Why do we need {stringr} when we have tinkr::yarn 🧶 😝?

I was slightly dreading the difficulty of this, but the solution you came up with is spot on and really straightforward!

I have one request: please add a NEWS item 🙏🏼

@maelle
Copy link
Member Author

maelle commented Jan 27, 2023

I was slightly dreading the difficulty of this, but the solution you came up with is spot on and really straightforward!

The commit history furthermore shows how easy it was for me. 🤪

I have one request: please add a NEWS item 🙏🏼

Done!

@zkamvar zkamvar merged commit b2e0459 into main Jan 27, 2023
@zkamvar zkamvar deleted the stringr branch January 27, 2023 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove stringr dependency?
2 participants