Skip to content

Commit

Permalink
Avoid superseded dplyr::sample_n() (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy authored Oct 3, 2024
1 parent e862e0b commit 85b0428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/sidebars/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ library(plotly)
library(leaflet)
# Creates the "filter link" between the controls and plots
dat <- SharedData$new(dplyr::sample_n(diamonds, 1000))
dat <- SharedData$new(dplyr::slice_sample(diamonds, n = 1000))
# Sidebar elements (e.g., filter controls)
filters <- list(
Expand Down

0 comments on commit 85b0428

Please sign in to comment.