R/zzz.R

Defines functions .onUnLoad .onLoad

.onLoad <- function(libname, pkgname) {
  # Set the option to TRUE if it has not been set before.
  if (is.null(getOption('nloptr.show.inequality.warning')))
    options('nloptr.show.inequality.warning' = TRUE)
}

.onUnLoad <- function(libpath) {
  library.dynam.unload("nloptr", libpath)
}

Try the nloptr package in your browser

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

nloptr documentation built on May 28, 2022, 1:17 a.m.