rSoniaLoc {rSoNIA}R Documentation

Search library tree for SoNIA install path

Description

Searches the library trees from .libPaths() to discover the path to the directory where SoNIA is installed. Used by installer scripts, and also as the default path when lanuching sonia. Used as a kludge for specifying a dependency on a java library.

Usage

rSoniaLoc()

Value

returns a string giving the path the the rSoNIA/java directory

Author(s)

skyebend@skyeome.net

References

~put references to the literature/web site here ~

Examples

##---- 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 () 
{
    for (lib in .libPaths()) {
        if (sum(.packages(all = TRUE, lib.loc = lib) == "rSoNIA")) {
            return(paste(lib, "rSoNIA", "java", "", sep = "/"))
        }
    }
    return(NULL)
  }

[Package rSoNIA version 0.0-4 Index]