-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Code style in examples hard to read in reference docs #4092
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
Comments
I agree and it should be updated to follow tidyverse style. Would you be interested in opening a pull request? The relevant lines are here: Lines 71 to 82 in ccd94e1
|
Yes. I'll take it |
@karawoo Should I go through all the examples? When done, do I rebuild the site? I've seen some repos ask contributors not to. |
You don't need to (though it would be really appreciated if you do so). ggplot2 has so massive amount of examples that we probably cannot check if your pull request is comprehensive or not. I personally think we should automatically style all the code by using styler at some point... Anyway you can pick only the examples that you want to fix.
You don't need to rebuild the pkgdown site as it is automatically built by GitHub Actions CI after your pull request is merged. (If you meant "regenerate the docs," please do.) Note that you need to install the specific branch of roxygen2 by |
Really minor but the code could be easier to read in some of the examples.
In the sec_axis() example it looks ok if I copy and paste the code but in the help menu and the ref docs, it's hard to see where the parentheses start and end and the piping of the plot elements
When copied, it's easier to read:
I'd like for it to look like this:
The text was updated successfully, but these errors were encountered: