Skip to contents

nonamespace(sys$sub$x) evaluates the $ accesses in its argument without namespacing, so it returns the variable x as it is written in the subsystem, as the @nonamespace macro. namespace() forces namespacing (the @namespace macro), which matters for complete systems.

Usage

nonamespace(expr)

namespace(expr)

Arguments

expr

An expression with $ accesses on systems.

Value

The value of expr.

Examples

t <- t_nounits; D <- D_nounits
x <- Variable("x", t)
inner <- System(list(D(x) ~ -x), t, name = "inner")
outer <- System(list(), t, name = "outer", systems = list(inner))
outer$inner$x
#> outer₊inner₊x(t)
nonamespace(outer$inner$x)
#> x(t)