Skip to content

docs: better describe output of all_shortest_paths()#1626

Closed
maelle wants to merge 3 commits intomainfrom
vpaths
Closed

docs: better describe output of all_shortest_paths()#1626
maelle wants to merge 3 commits intomainfrom
vpaths

Conversation

@maelle
Copy link
Copy Markdown
Contributor

@maelle maelle commented Dec 10, 2024

Fix #1029

@szhorvat I'll need your help.

@aviator-app
Copy link
Copy Markdown
Contributor

aviator-app bot commented Dec 10, 2024

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR is currently in state closed (PR closed manually).


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.

@szhorvat
Copy link
Copy Markdown
Member

$res is for backwards compatibility. It is the same as $vpath. It is effectively deprecated. The deprecation should be made explicit, and it should be removed soon.

@krlmlr
Copy link
Copy Markdown
Contributor

krlmlr commented Jan 6, 2025

@maelle: Should this be part of the upcoming 2.1.3?

@maelle
Copy link
Copy Markdown
Contributor Author

maelle commented Feb 13, 2025

@krlmlr @szhorvat suggests deprecated res. For this we'd need #1576 I'd be curious to see you add this during a hackathon so I have a better chance of doing it myself another time.

Copy link
Copy Markdown
Contributor

@krlmlr krlmlr left a 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
Copy link
Copy Markdown
Contributor

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.

@krlmlr
Copy link
Copy Markdown
Contributor

krlmlr commented Mar 6, 2025

@maelle: Do you want to take another stab?

@maelle
Copy link
Copy Markdown
Contributor Author

maelle commented Mar 25, 2025

I'll start a new branch because of the conflicts.

@maelle maelle closed this Mar 25, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add_shortest_paths() docs do not describe vpaths / epaths

3 participants