checkPckg:

Usage Arguments Examples

View source: R/sig.sgraph.R

Usage

1
checkPckg(pckg)

Arguments

pckg

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (pckg) 
{
    pckg = eval(parse(text = paste("try(require(", pckg, "))")))
    if (!pckg) {
        cat(paste("Installing '", pckg, "' from CRAN\n"))
        getPckg(pckg)
        eval(parse(text = paste("require(", pckg, ")")))
    }
  }

muschellij2/ssgraph documentation built on May 23, 2019, 9:56 a.m.