spnOpenGrp: Opens/Creates a spec-group in the top tab/spec-tree

Description Usage Arguments Value Author(s) See Also Examples

Description

Open/Create a spec-group in the top tab/spec-tree. All the spec files from one spec-group must be in the direcory of the group file. The names of spec-groups or specs are the filenames of the respected ones without path and extension (no space or special characters allowed). To avoid misinterpretation the names of group or spec cannot be numbers (even the operation system let you do it).

Usage

1
spnOpenGrp(GFilename,NewGrp)

Arguments

GFilename

- character string; If the path is missing, the path of current spec-tree is assumed. The extension (*.SGR) is not a must. All the filenames or directories must be with forward slashes e.g. D:/Prime/Data/Test.sgr

NewGrp

- logical. If NewGrp is true then GFilename shouldn't exist to be created. If NewGrp is false then GFilename must exist to be opened.

Value

spnOpenGrp returns the number of groups after the adding, which is the index of added group. spnGetGrpCount

Author(s)

Teodor Krastev

See Also

spnOpenSpc , spnOpenTree , spnSaveGrp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# Initialization of Spectrino
spnNew() 

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

# empty the whole list of groups
spnDelGrp("*") 

# creates a new group; 
# the directory must exists and the spec files must be in it
# i1 <- spnOpenGrp("D:/Prime/Data/Oils.sgr", TRUE) 

# opens "Test2.sgr" file from current spec-tree directory
i2 <- spnOpenGrp("Test2", FALSE) 

# Release of Spectrino
#spnFree(TRUE)

spectrino documentation built on June 4, 2019, 1:02 a.m.