R/check-suggests.R

Defines functions .check_suggests

# Generated by autofun (0.0.0.9000): do not edit by hand!!!
# Please edit source code in spsann-package/R-autofun/check-suggests.R
.check_suggests<-function(...){
expression(id <- !sapply(pkg, requireNamespace, quietly = TRUE), 
    res <- NULL, if (any(id)) {
      pkg <- paste(pkg[which(id)], collapse = " ")
      res <- paste("Package(s) needed for this function to work but not", "installed: ", pkg, sep = "")
    }, if (!is.null(res)) stop (res, call. = FALSE))
}
samuel-rosa/spsann documentation built on Nov. 6, 2023, 12:48 p.m.