spnSourceBlock {spectrino}R Documentation

Get the source from a block and optionally execute it

Description

Get the srcIdx source from a block and optionally execute it namespace/enviroment you are calling the function from.

Usage

spnSourceBlock(Block, srcIdx, Eval = TRUE)

Arguments

Block

- character string, a name of a block.

srcIdx

- integer (1,2,3); the function uses a source (code) from srcIdx tab of the respective block.

Eval

- execute the code in namespace/enviroment you are calling the function from.

Value

spnOpenTree returns the number of groups in the new spec-tree. spnGetGrpCount

Author(s)

Teodor Krastev

See Also

spnLogBlock , spnChartBlock

Examples

# Initialization of Spectrino
spnNew() 

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

# gets source from tab 1 source of the block and execute it
spnSourceBlock("test3", 1, TRUE)

# Release of Spectrino
spnFree(TRUE)

[Package spectrino version 2.0.0 Index]