prioritize: Re-attach packages to prevent masking

Description Usage Arguments Details Examples

View source: R/prioritize.R

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

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

# loading plyr after dplyr causes badness
needs(dplyr, plyr)

# prioritize the functions in dplyr
prioritize(dplyr)


## End(Not run)

needs documentation built on May 1, 2019, 10:10 p.m.