needs (version 0.0.3)

prioritize: Re-attach packages to prevent masking

Description

prioritize detaches packages from the search path, then re-attaches them, placing them at the beginning of the search path to prevent masking. This allows for the loading of packages with conflicting function names in any order.

Usage

prioritize(...)

Arguments

...
Packages, given as unquoted names or character strings. Earlier arguments will be attached later (and therefore get a higher priority).

Details

If you find yourself calling this function a lot, you're probably doing something wrong.

Examples

Run this code
## Not run: 
# 
# # loading plyr after dplyr causes badness
# needs(dplyr, plyr)
# 
# # prioritize the functions in dplyr
# prioritize(dplyr)
# 
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace