powered by
Moves a environment in the search path to another position.
# S3 method for default moveInSearchPath(from, to, where=c("before", "after"), ...)
Returns (invisibly) the name of the environment moved, if it was moved, otherwise NULL.
NULL
An integer specifying the position of the environment to be moved, or a character specifying the name of the environment to be moved.
integer
character
The destination position like the from argument.
from
A character string specify where in relation to the destination position the environment should be moved.
Not used.
Henrik Bengtsson
It is not possible to move the first environment in the search path, i.e. the so called global environment.
search().
search
# Make package 'utils' come behind 'datasets' in the search path moveInSearchPath("package:utils", "package:datasets", where="after")
Run the code above in your browser using DataLab