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

Update package style and documentation #178

Merged
merged 3 commits into from
Sep 7, 2023
Merged

Update package style and documentation #178

merged 3 commits into from
Sep 7, 2023

Conversation

joshwlambert
Copy link
Member

This PR updates the package coding style and function documentation. These changes address comments from the full package review (PR #151).

The package coding style has followed the tidyverse style, but this PR applies a {styler} (using styler::style_pkg()) to enforce a consistency style. This is checked with lintr::lint_package() and the lint workflow which uses the .lintr file in the package root.

The function documentation has been updated to firstly be more consistent across functions. It now uses imperative function descriptions in the @title and @description. It uses a {packagename} <classname> style. It makes use of inheritance provided by {roxygen2} (@inherit and @inheritParams) to remove duplicated docs. Descriptions, parameter documentation and return values are all sentences ending in a full stop. The clarity and wording of some functions has been improved.

@joshwlambert joshwlambert added the documentation Improvements or additions to documentation label Sep 7, 2023
@joshwlambert joshwlambert merged commit 0bdefe5 into main Sep 7, 2023
8 of 9 checks passed
@joshwlambert joshwlambert deleted the pkg_style branch September 7, 2023 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants