R/zzz.R

Defines functions .onAttach

# Output a message for the user if they attach the package rather than use the
# colon-syntax.
.onAttach <- function(libname, pkgname)
{
  msg <-
    paste0("The import package should not be attached.\n",
           "Use \"colon syntax\" instead, e.g. import::from, or import:::from.")

  packageStartupMessage(msg)

  invisible()
}

Try the import package in your browser

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

import documentation built on Sept. 24, 2023, 1:08 a.m.