-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
docs: better describe output of all_shortest_paths()
#1626
base: main
Are you sure you want to change the base?
Conversation
Current Aviator status
This pull request is currently open (not queued). How to mergeTo merge this PR, comment
See the real-time status of this PR on the
Aviator webapp.
Use the Aviator Chrome Extension
to see the status of your PR within GitHub.
|
|
@maelle: Should this be part of the upcoming 2.1.3? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
#' shortest paths to the same vertex are collected into consecutive elements | ||
#' of the list. | ||
#' For `all_shortest_paths()` a list is returned: | ||
#' \item{vpaths}{This is a list. Each list element |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need \describe{}
here? See https://developer.r-project.org/parseRd.pdf .
Yes, in R documentation (.Rd) files, you need to use \describe{}
if you want to use \item{}{}
.
Explanation:
\describe{}
is used to create a description list in R documentation.\item{}{}
defines individual list items, where the first argument is the term being described, and the second argument is its description.
Example:
\describe{
\item{param1}{This is the first parameter description.}
\item{param2}{This is the second parameter description.}
}
Alternative:
- If you don’t need a term-description list and just want bullet points, you can use
\itemize{}
instead:\itemize{ \item First bullet point. \item Second bullet point. }
So, yes, \describe{}
is required for \item{}{}
in .Rd
files.
@maelle: Do you want to take another stab? |
Fix #1029
@szhorvat I'll need your help.