When I load a package, I get a message stating that:
"The following object is masked from 'package:xxx'
For example, if I load testthat
then assertive
, I get the following:
library(testthat)
library(assertive)
## Attaching package: ‘assertive’
##
## The following objects are masked from ‘package:testthat’:
##
## has_names, is_false, is_less_than, is_null, is_true
What does this message mean, and how do I prevent it?
I have the same problem. I avoid it with remove.packages("Package making this confusion")
and it works. In my case, I don't need the second package, so that is not a very good idea.
Source: Stackoverflow.com