moveInSearchPath {R.utils} | R Documentation |
Moves a environment in the search path to another position.
## Default S3 method: moveInSearchPath(from, to, where=c("before", "after"), ...)
from |
An integer specifying the position of the environment
to be moved, or a character specifying the name of the environment
to be moved. |
to |
The destination position like the from argument. |
where |
A character string specify where in relation to the
destination position the enviroment should be moved. |
... |
Not used. |
It is not possible to move the first environment in the search path, i.e. the so called global environment.
Returns (invisibly) the name of the environment moved, if it was
moved, otherwise NULL
.
Henrik Bengtsson (http://www.braju.com/R/)
search
().
# Make package 'utils' come behind 'datasets' in the search path moveInSearchPath("package:utils", "package:datasets", where="after")