Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Dec 30, 2024
1 parent e1adc13 commit 484ef33
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 7 additions & 2 deletions R/pair-links.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#' Helper function to create a pair of links
#' Helper function to create pairs of links
#'
#' @description
#' [`ggmark()`] and [`cross_link()`] allow users to add links to observations.
#' These functions help specify the linked observations.
#'
#' - `pair_links`: Helper function to create pair of links.
#' - `range_link`: Helper function to create a range of observations.
Expand Down Expand Up @@ -580,7 +584,7 @@ link_to_location.character <- function(x, n, names = NULL, index = NULL, ...,
arg = arg,
call = call
)
match(ans, index)
match(ans, index) # character always match the original data
}

#' @export
Expand All @@ -594,6 +598,7 @@ link_to_location.integer <- function(x, n, names = NULL, index = NULL, ...,
arg = arg,
call = call
)
# integer index by default match the original data
if (isTRUE(data_index)) ans else match(ans, index)
}

Expand Down
4 changes: 3 additions & 1 deletion man/pair_links.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 484ef33

Please sign in to comment.