Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove the stringr dependency #285
Stringr is a very heavy dependency (due to the stringi dependency) which means any package which uses httr has to compile this heavy dependency. This makes packages (such as devtools) take a large amount of time to build (such as on Travis). While I generally feel one should not fear heavy dependencies for most packages, because httr is a widely used foundation package having such a large dependency is not ideal.
This pull request removes this dependency by providing drop in R only replacements for the equivalent stringr functions written using base functions.
They don't provide the full functionality of the stringr functions, but they provide what is needed by the usage in httr.
All the tests and examples pass on my machine.