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

Improve roxygen2 usage #58

Merged
merged 2 commits into from
Nov 7, 2021
Merged

Improve roxygen2 usage #58

merged 2 commits into from
Nov 7, 2021

Conversation

salim-b
Copy link
Contributor

@salim-b salim-b commented Nov 7, 2021

This PR relies on various modern roxygen2 features to simplify and streamline documentation and reduce duplications. There were also a bunch of documentation errors/mistakes that this PR fixes as well as various spelling harmonizations.

Note that unfortunately we can't use @inheritParams since

roxygen2 doesn't parse the usage block, so it doesn't know what the usage is, and hence it doesn't find any parameters to inherit.

Instead we use @eval to minimize duplication.

Also note that Markdown support in roxygen2 documentation tags is now enabled globally for the whole package which means percentage signs (%) mustn't be escaped anymore.

Rely on various modern roxygen2 features to simplify and streamline documentation and reduce duplications. There were also a bunch of documentation errors/mistakes that this PR fixes as well as various spelling harmonizations.

Note that unfortunately we can't use `@inheritParams` [since](r-lib/roxygen2#836 (comment))

> roxygen2 doesn't parse the usage block, so it doesn't know what the usage is, and hence it doesn't find any parameters to inherit.

Instead we use `@eval` to minimize duplication, cf. https://roxygen2.r-lib.org/articles/rd.html#evaluating-arbitrary-code

Also note that Markdown support in roxygen2 documentation tags is now enabled globally for the whole package which means percentage signs mustn't be escaped anymore.
@traversc traversc merged commit da46741 into qsbase:master Nov 7, 2021
@traversc
Copy link
Collaborator

traversc commented Nov 7, 2021

This pretty cool, I need to re-learn roxygen2. Thanks for all the fixes, if you want to add yourself to the authors list feel free to.

@salim-b
Copy link
Contributor Author

salim-b commented Nov 7, 2021

Glad to hear! 🙃
Took me quite a while in the end to put together all the changes, but I couldn't stop just in the middle.

if you want to add yourself to the authors list feel free to.

Thanks, I've just submitted #59 😄

And BTW, thank you for developing this awesome package!!

@salim-b salim-b deleted the more-roxy branch November 7, 2021 21:47
traversc added a commit that referenced this pull request Nov 24, 2021
traversc pushed a commit that referenced this pull request Nov 24, 2021
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.

2 participants