R/zzz.R

Defines functions .onLoad

# in R/zzz.R or similar
if (getRversion() >= "2.15.1") utils::globalVariables(
  c(".", ":=", "private", "self")
)

.onLoad <- function(libname, pkgname) {
  ggplot2::theme_set(
    ggplot2::theme_light(
      base_size   = 20
    ) +
    ggplot2::theme(
      plot.title   = ggplot2::element_text(hjust = 0.5),
      plot.caption = ggplot2::element_text(hjust = 0.5),
      plot.margin  = ggplot2::margin(1, 1, 1, 1, "cm")
    )
  )
}

Try the shinymrp package in your browser

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

shinymrp documentation built on Dec. 4, 2025, 5:07 p.m.