returnModelNumber {CoCoRaw}R Documentation

Return the number of the CURRENT, BASE, or the LAST model

Description

Return the internal model number of the CURRENT, the BASE. or the LAST model in the CoCo object.

Usage

returnModelNumber(model = FALSE, no.warnings = FALSE, pop = FALSE, data = NULL, 
                  object = .object.of.model(model, data = data, ...), ...)

Arguments

model The text string "base", "current" or "last".
no.warnings Logical, if no.warnings is set to TRUE then no warnings is given if the model is not available.
pop Logical: If pop is set to TRUE in CoCoCg then the CURRENT and BASE pointers are set to the top pointers of the stack of CURRENT and BASE pointers in the CoCo object, see push at makeCurrent.
data ( See exportCoCo. )
object See exportCoCo.
... ( Additional arguments to generate the CoCo object from the data argument. See propertyModel. )

Value

An integer with the model number, if the model is avaliable, else NULL.

Note

pop is only implemented for CoCoCg objects.

Author(s)

Jens Henrik Badsberg

References

Badsberg, J.H.: Xlisp+CoCo, Aalborg University, 1996.

See Also

enterModel, showModel, returnTest, isSubmodel, propertyModel, makeCurrent and returnModel.


[Package Contents]