Learn R Programming

spectrino (version 2.0.0)

spnSourceBlock: 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); Gets 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

See Also

spnLogBlock , spnChartBlock

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab