title: R dplyr filter not masking base filter?
body: <p>At work, I have a Windows 7 computer running R 3.1.2.</p>
  
  <p>I have a file called packages.R. In my this file, I have the following code:</p>
  
  <pre><code>library(dplyr)
  library(sqlutils)
  library(RODBC)
  </code></pre>
  
  <p>My .Rprofile contains a function called .First.</p>
  
  <pre><code>.First &lt;- function() {
      source("R/packages.R")
  }
  </code></pre>
  
  <p>When I load R, I get the following output:</p>
  
  <pre><code>Loading required package: roxygen2
  Loading required package: stringr
  Loading required package: DBI
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  </code></pre>
  
  <p>If you look at this carefully, you will see the filter from stats is not masked.</p>
  
  <p>But, if I take my exact same setup, and comment out the library(dplyr) statement in packages.R, save the file, and restart R and then manually . . . . as in type it in by hand . . . . </p>
  
  <pre><code>library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:stats':
  
      filter
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  </code></pre>
  
  <p>Now, it masks package::stats.</p>
  
  <p>I don't get it. I need to use the filter command from dplyr a lot for this project and I don't want to type dplyr::filter in order to use it. Could someone please help my weak mind understand why this is behaving this way? I have tried starting R in RStudio and ESS, and I get the exact same behavior in both. I also tried moving dplyr to the end of the packages.R file, with no difference to the results. I just want to mask stats::filter. Thanks.</p>