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

General updates to Rd documentation #1246

Merged
merged 21 commits into from
Oct 12, 2024
Merged

General updates to Rd documentation #1246

merged 21 commits into from
Oct 12, 2024

Conversation

kylebaron
Copy link
Collaborator

@kylebaron kylebaron commented Oct 8, 2024

Reformatting all documentation.

  • argument descriptions start with lower case and end with period.
  • switch to @md where we make changes to the other parts of the help topic
  • change ##' to #'
  • Add examples and return values where we can
  • Definitely some files I left alone

Latest pkgdown site:DOCS.zip Might aid review.

@kylebaron kylebaron requested a review from kyleam October 11, 2024 03:58
Copy link
Contributor

@kyleam kyleam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cleanups and extensions look good (and like they took a lot of tedious and careful work).

My inline comments are nearly all about existing typos that I spotted while going through the diff.

argument descriptions start with lower case and end with period.

Great, I think it's very nice to have consistency within a project.

When there's not a clear project preference (our projects in general are all over the place), I tend to start with an upper case letter to align with the tidyverse convention:

For most tags, like @param, @seealso and @return, the text should be a sentence, starting with a capital letter and ending with a full stop.

_pkgdown.yml Outdated
@@ -1,6 +1,7 @@
template:
bootstrap: 5
title: mrgsolve
url: https://github.com/metrumresearchgroup/mrgsolve
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, isn't this supposed to be the URL of the pkgdown site? At least for auto-linking to work across packages, I think that the value in _pkgdown.yml should be https://mrgsolve.org/docs and then in DESCRIPTION the URL field should be

URL: https://mrgsolve.org/docs, https://github.com/metrumresearchgroup/mrgsolve

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been hesitant to list those urls in the package b/c I've been maintaining it and I know CRAN will complain if the url isn't reachable. Well, it's been stable for a while so will just go for it.

R/chain.R Outdated Show resolved Hide resolved
R/chain.R Outdated Show resolved Hide resolved
R/class_tgrid.R Outdated
Comment on lines 116 to 117
#' @rdname tgrid
#' @name tgrid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ not changed with this PR ]

This is one of several spots that use both @rdname and @name with the same value. In the case, I think rdname is unnecessary.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they can both go? this documentation is associated with a function called tgrid().

R/data_set.R Outdated Show resolved Hide resolved
R/data_set.R Outdated Show resolved Hide resolved
@kylebaron kylebaron merged commit 2f32c51 into main Oct 12, 2024
7 checks passed
@kylebaron kylebaron deleted the documentation branch October 12, 2024 15:30
@kylebaron kylebaron mentioned this pull request Oct 17, 2024
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