lawyeR
lawyeR

Reputation: 7684

Masked functions when a package is loaded, but not reciprocal?

I had the dplyr package loaded when I loaded the stringi package. This message appeared (I dropped a couple of lines re ggplot2 being masked for %+%).

require(stringi)
Loading required package: stringi

Attaching package: ‘stringi’

The following object is masked from ‘package:dplyr’:

    %>%

When I returned to using dplyr, I reloaded it.

require(dplyr)

Why did that last call not warn me that %>% is masked from stringi?

More generally, if you don't remember to reload a package (and presumably restore its use of some function masked by another package, how do you figure out the masking?

Upvotes: 2

Views: 751

Answers (1)

wdkrnls
wdkrnls

Reputation: 4702

You can reload dplyr using the devtools package.

library(devtools)
reload(inst("dplyr"))

Upvotes: 3

Related Questions