amigoingmad: It's easy to attach packages that overwrite functions from...

Description Usage Arguments Examples

View source: R/amigoingmad.R

Description

It's easy to attach packages that overwrite functions from other packages. Especially dplyr has a lot of conflicts with base packages, MASS and plyr. Because some of these conflicts do not always lead to error messages, sometimes just incorrect behaviour, this function exists. Don't trust your faulty memory, just check whether dplyr's (or any other package's) functions are 'on top' if you so desire.

Usage

1
amigoingmad(fix = TRUE, package = "dplyr", iteration = 0)

Arguments

fix

defaults to true. Detaches the desired package (without unloading) and loads it again. Won't work for base packages and can't overwrite functions that you defined yourself.

package

the package you want to be on top (loaded last), defaults to dplyr

iteration

for internal use only, if set to 0 the function will call itself to check that it worked, if set to 1, it won't.

Examples

1
amigoingmad(fix = FALSE, package = 'formr')

grebbel/formr_test documentation built on May 17, 2019, 8:34 a.m.