R/zzz.R

Defines functions .onAttach

.onAttach <- function(libname, pkgname) {
  if (!interactive()) {
    packageStartupMessage(
      "moderndive's `View()` renders a DT::datatable() inline here ",
      "instead of erroring like `utils::View()`."
    )
  }
}

Try the moderndive package in your browser

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

moderndive documentation built on Oct. 30, 2026, 5:08 p.m.