R/hbbrInit.R

Defines functions .onLoad .onAttach

.onLoad <- function(...) {
  if (!requireNamespace("R2jags", quietly = TRUE)) {
    stop("Package 'R2jags' needed for this package to work. Please install it.",
         call. = FALSE)
  }
}

.onAttach <- function(...) {
  packageStartupMessage(paste("Package hbbr is loaded that implements ...",
                              "\nhierarchical Bayesian benefit-risk assessment using DCE"))
}

utils::globalVariables(c("ilogit", "Del", "eps"))

Try the hbbr package in your browser

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

hbbr documentation built on Oct. 30, 2019, 9:47 a.m.