| Line 36... |
Line 36... |
| 36 |
to environments and bindings within environments. They allow for
|
36 |
to environments and bindings within environments. They allow for
|
| 37 |
locking environments as well as individual bindings, and for linking
|
37 |
locking environments as well as individual bindings, and for linking
|
| 38 |
a variable to a function.
|
38 |
a variable to a function.
|
| 39 |
}
|
39 |
}
|
| 40 |
\details{
|
40 |
\details{
|
| 41 |
The function \code{lockEnvironment} locks its environment argument,
|
41 |
The function \code{lockEnvironment} locks its environment argument.
|
| 42 |
which must be a normal environment (not base). (Locking the base
|
- |
|
| 43 |
environment and namespace may be supported later.) Locking the
|
42 |
Locking the
|
| 44 |
environment prevents adding or removing variable bindings from the
|
43 |
environment prevents adding or removing variable bindings from the
|
| 45 |
environment. Changing the value of a variable is still possible unless
|
44 |
environment. Changing the value of a variable is still possible unless
|
| 46 |
the binding has been locked. The namespace environments of packages
|
45 |
the binding has been locked. The namespace environments of packages
|
| 47 |
with namespaces are locked when loaded.
|
46 |
with namespaces are locked when loaded.
|
| 48 |
|
47 |
|