[Rd] Suppress conflict messages when mask.ok

Magnus Torfason zu|ut|me@net @end|ng |rom gm@||@com
Mon Dec 28 17:29:29 CET 2020

I was very happy to see the new mask.ok option. It works very well when
conflicts.policy is "strict":

library(igraph, exclude="decompose", mask.ok=c("spectrum","union"))
#> [No messages]

However, if no conflicts.policy has been set, the masked objects are loudly
reported, even if they are specified with mask.ok:

library(igraph, exclude="decompose", mask.ok=c("spectrum","union"))
#> Attaching package: 'igraph'
#> The following object is masked from 'package:stats':
#>     spectrum
#> The following object is masked from 'package:base':
#>     union

It seems that if I specify mask.ok, that particular masking is expected and
should NOT be reported, regardless of what the conflicts.policy is. It
would be very useful for many users who are not ready to switch over to a
strict conflicts.policy, to nevertheless be able to suppress messages about
expected conflicts using mask.ok and thus only get messages when unexpected
masking occurs.


	[[alternative HTML version deleted]]

More information about the R-devel mailing list