modprobe {StabPerf}R Documentation

Attempts to load a given library

Description

Loads a give library, when avaible. Prints a simple message that an optional library was not found when not successful.

Usage

modprobe(lib)

Arguments

lib character. Name of library to try to load

Details

Uses require to try to load library, diverting any warnings, so as not to make a missing package seem to be an error, when it is only optional.

Value

success logical.

See Also

require, library

Examples

if (modprobe("mylib") { do.something() } else { alternative.method() }

[Package StabPerf version 0.5 Index]