Skip to content

Commit 0ba1c87

Browse files
committed
highlight_unit() is a better name
1 parent 3e14022 commit 0ba1c87

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ export(hide_colorbar)
142142
export(hide_guides)
143143
export(hide_legend)
144144
export(highlight)
145+
export(highlight_unit)
145146
export(knit_print.api_grid)
146147
export(knit_print.api_grid_local)
147148
export(knit_print.api_plot)
@@ -176,7 +177,6 @@ export(renderPlotly)
176177
export(schema)
177178
export(select)
178179
export(select_)
179-
export(shared_data)
180180
export(showRGB)
181181
export(signup)
182182
export(slice)

R/plotly_data.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,13 @@ print.plotly_data <- function(x, ...) {
9191
#' Shared data
9292
#'
9393
#' This is simply a wrapper around `crosstalk::SharedData$new()` to make it easier
94-
#' to use and explain conceptually.
94+
#' to use and explain conceptually. It also makes it more discoverable if one
95+
#' is already aware of [highlight].
9596
#'
9697
#' @param ... arguments passed to crosstalk::SharedData$new()
9798
#' @export
9899
#' @return An object of class [crosstalk::SharedData]
99-
shared_data <- function(...) {
100+
highlight_unit <- function(...) {
100101
crosstalk::SharedData$new(...)
101102
}
102103

man/shared_data.Rd renamed to man/highlight_unit.Rd

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)