spnAddTree {spectrino}R Documentation

Open a spec-tree in a new tab

Description

Open a spec-tree in a new tab from TFilename. If the active tab/spec-tree is empty (<no-name> title and no groups opened) that tab will be used instead of creating a new one.
The spec-tree file (.str) always is saved with the preprocessing options. If the file does not exist the function will create an empty one, so you can add groups and specs and save it with spnSaveTree("")

Usage

spnAddTree(TFilename,InclOpt)

Arguments

TFilename

- character string. The extension (*.STR) is not a must. All the filenames or directories must be with forward slashes e.g. D:/Spectrino/Data/Test.str. "<test>" string generates test example (simulation)

InclOpt

- integer (0,1,2); InclOpt rules where the preprocessing options will be taken from. If InclOpt = 0 then factory setting (no preprocessing) is used; 1 is for last used one; if 2 - the options are taken from TFilename

Value

spnAddTree returns the number of tabs/spec-trees. spnGetGrpCount

Author(s)

Teodor Krastev

See Also

spnOpenTree , spnOpenSpc , spnOpenGrp , spnSaveTree

Examples

# Initialization of Spectrino
spnNew() 

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

# Release of Spectrino
spnFree(TRUE)

[Package spectrino version 2.0.0 Index]