spnIsError {spectrino} | R Documentation |
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.
spnIsError(rslt)
rslt |
check if rslt is character and if it is, if it is an error message (starts with Error:) |
spnIsError
returns logical for spectrino error.
Teodor Krastev
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)