Skip to content

Fix draw_keypoints() documentation and error message typo#296

Merged
cregouby merged 1 commit intomlverse:mainfrom
srishtiii28:fix/draw-keypoints-docs
Mar 25, 2026
Merged

Fix draw_keypoints() documentation and error message typo#296
cregouby merged 1 commit intomlverse:mainfrom
srishtiii28:fix/draw-keypoints-docs

Conversation

@srishtiii28
Copy link
Copy Markdown
Contributor

Summary

Three documentation fixes for draw_keypoints() in R/vision_utils.R:

  • connectivity parameter: Changed type annotation from Vector to List (it accepts list(c(i, j), ...) pairs). Replaced the stale (currently unavailable) note with a real description and a concrete usage example, matching the implemented behaviour.
  • colors parameter: Fixed two copy-paste errors carried over from draw_bounding_boxes()"boxes""keypoints" (twice), and "viridis""rainbow" (the function uses grDevices::rainbow(), not viridis).
  • Error message typo: Removed the accidental duplicate word in "but is current shape is""but current shape is".

All three fixes are applied in R/vision_utils.R, reflected in the regenerated man/draw_keypoints.Rd, and noted in NEWS.md.

Files changed

  • R/vision_utils.R — roxygen2 source edits
  • man/draw_keypoints.Rd — regenerated documentation
  • NEWS.md — changelog entry under development version

- connectivity: corrected type from Vector to List, replaced stale
  "(currently unavailable)" note with a proper description and example
  (list(c(1, 2), c(2, 3))) matching the implemented behaviour
- colors: fixed copy-paste errors: "boxes" -> "keypoints" in two places,
  "viridis" -> "rainbow" (the function uses grDevices::rainbow())
- cli_abort() message: removed accidental duplicate "is" in the phrase
  "but is current shape is" -> "but current shape is"
@cregouby cregouby merged commit baa19b7 into mlverse:main Mar 25, 2026
3 checks passed
@cregouby
Copy link
Copy Markdown
Collaborator

Thanks a lot @srishtiii28 !

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