spnIsError {spectrino}R Documentation

Check for spectrino error in a function result

Description

Checking if the result of spectrino function is error. In your code, it's a good practice to check the result from any spectrino function (except for spnNew, spnFree and spnCheck).
There is no sense to call this function from command line, because you would see the error message on the terminal.

Usage

spnIsError(rslt)

Arguments

rslt

check if rslt is character and if it is, if it is an error message (starts with Error:)

Value

spnIsError returns logical for spectrino error.

Author(s)

Teodor Krastev

Examples

spnNew() 

# generate test set
spnOpenTree("<test>")

# all the specs from all the groups (excluding "unknowns" group, if any)
m1 <- spnGetTree(FALSE) 

# is there an error 
spnIsError(m1)

# Release of Spectrino
spnFree(TRUE)

[Package spectrino version 2.0.0 Index]