R/zzz.R

Defines functions .onAttach

.onAttach <- function(libname, pkgname) {
  if (!requireNamespace("torch", quietly = TRUE)) {
    packageStartupMessage(
      "The 'torch' package is suggested but not installed.\n",
      "Install it with: install.packages('torch')",
      "\nAfter installation, run torch::install_torch() if prompted."
    )
  }
}

Try the DistributionIV package in your browser

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

DistributionIV documentation built on Sept. 9, 2025, 5:52 p.m.