moveInSearchPath
From R.utils v1.19.3
by Henrik Bengtsson
Moves a environment in the search path to another position
Moves a environment in the search path to another position.
- Keywords
- internal, programming
Usage
## S3 method for class 'default':
moveInSearchPath(from, to, where=c("before", "after"), ...)
Arguments
- from
- An
integer
specifying the position of the environment to be moved, or acharacter
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.
Details
It is not possible to move the first environment in the search path, i.e. the so called global environment.
Value
- Returns (invisibly) the name of the environment moved, if it was
moved, otherwise
NULL
.
See Also
search
().
Examples
# Make package 'utils' come behind 'datasets' in the search path
moveInSearchPath("package:utils", "package:datasets", where="after")
Community examples
Looks like there are no examples yet.