Defines functions .onLoad

.onLoad <- function(...) {
  # These generics are defined in R/plotly_data.R
  dplyr_generics <- c(
    "groups", "ungroup", "group_by", "summarise", "mutate", "do", "arrange",
    "select", "filter", "distinct", "slice", "rename", "transmute"
  dplyr_generics <- paste0("dplyr::", dplyr_generics)
  for (generic in dplyr_generics) {
    vctrs::s3_register(generic, "plotly")
    if (generic %in% c("dplyr::groups", "dplyr::ungroup")) {
    vctrs::s3_register(paste0(generic, "_"), "plotly")

Try the plotly package in your browser

Any scripts or data that you put into this service are public.

plotly documentation built on Nov. 10, 2022, 5:42 p.m.