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

Dependency-less version #65

Merged
merged 10 commits into from
Aug 16, 2024

Conversation

phgrosjean
Copy link
Contributor

Hi @stephano-meschiari,
I like {latex2exp}, but as a basic tool possibly used in different contexts, it should limit its strong dependencies to a bare minimum. {magrittr} is really not required since code could be easily rewritten without the pipe. Also {stringr} brings other packages with him : {stringi}, {rlang}, {cli}, {lifecycle}, {vctrs}, and {glue}. While this is OK for people using the {tidyverse}, it is not for those that stick on base R.
Also note that many base functions equivalent to {stringr} ones are now faster in recent R versions.
Here, I propose a version of {latex2exp} that does not depends on {magrittr} or {stringr}. It passes all tests, produces correct latex2exp_examples() and compiles both vignettes, appart for the bug with \pmod that is also in the original version (and it is not the purpose of this pull request to correct existing bugs).

@stefano-meschiari stefano-meschiari self-assigned this Jul 30, 2024
@stefano-meschiari
Copy link
Owner

Thank you so much for your PR, and apologies for the delay in reviewing it!

@stefano-meschiari stefano-meschiari merged commit 733d5d2 into stefano-meschiari:main Aug 16, 2024
6 checks passed
@phgrosjean
Copy link
Contributor Author

Excellent. Thank you.

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.

None yet

2 participants