R/unload_Smisc.R

Defines functions .onUnload

# This function would be called when namespace is unloaded (if it were not in the
# search path because it had been loaded via loadNamespace("Smisc")
.onUnload <- function(libpath) {

  if (is.loaded("smartFilter", PACKAGE = "Smisc")) {

    confirm <- try(library.dynam.unload("Smisc", libpath), silent = TRUE)

    if (class(confirm) != "try-error")
      cat("Smisc shared objects are unloaded\n")
    else
      cat(confirm,"\n")
  }
  
}

Try the Smisc package in your browser

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

Smisc documentation built on May 2, 2019, 2:46 a.m.