Masking methods in R
问题 This question and in particular this answer brought up the following question: How can I get a warning about the masking of methods in R? If you run the following code in a clean R session, you'll notice that loading dplyr changes the default method for lag . lag(1:3, 1) ## [1] 1 2 3 ## attr(,"tsp") ## [1] 0 2 1 require(dplyr) lag(1:3, 1) ## [1] NA 1 2 If you attach the package dplyr , you get warnigns for several masked objects, but no warning about the default method for lag being masked.