R/detachHarman.R

Defines functions detachHarman

Documented in detachHarman

#' @title Detach the Harman package and its shared C/C++ library code
#' @description A helper function that can be called if \code{\link{harman}}
#' had to be aborted.
#' @return    None
#' @useDynLib Harman
#' @importFrom Rcpp sourceCpp
detachHarman <- function() {
  if (is.element("Harman", .packages())){
    detach(package:Harman, unload="TRUE")
  }
}
# @example
# library(Harman)
# detachHarman()
# @export
# @details Reinitialises the OpenMP library to use available threads for then
# next time the \code{\link{harman}} function is called.

Try the Harman package in your browser

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

Harman documentation built on Nov. 8, 2020, 7:50 p.m.