title: how do I use @importFrom so that it applies to a whole R package?
body: <p>automated data analysis workflows
  I have the following code in my <code>packagename.R</code> file in the <code>packagename</code> folder.</p>
  
  <p>I know I am going to use certain functions from other packages routinely, so I want to import them once instead of typing them out all over the place. I thought I should be able to do that with the above approach, but it's not working in my RStudio.</p>
  
  <pre><code>#' packagename: Package containing tools support project work.
  #'
  #' This package provides a central repository for methods to facilitate 
  #' project work
  #' @importFrom dplyr bind_rows mutate filter group_by ungroup
  #' @importFrom purrr pluck map map_chr map_dbl
  #' @importFrom lubridate ymd_hms
  #' @importFrom odbc odbc
  #' @importFrom DBI dbConnect dbDisconnect
  #' @importFrom stringr str_detect str_replace_all
  #' @docType package
  #' @name packagename
  NULL
  </code></pre>
  
  <p>In another file <code>topic.R</code> I have:</p>
  
  <pre><code>do_thing &lt;- function(x) str_replace_all(x, " ", "_"))
  </code></pre>
  
  <p>When I call <code>do_thing</code> it tells me:</p>
  
  <pre><code>Error in str_replace_all(x, " ", "_") : 
    could not find function "str_replace_all"
  </code></pre>
  
  <p>Is there something more I need to add, or perhaps should I do something differently?</p>
  
  <p>Based on the comments to the question, I needed to atleast regenerate my <code>NAMESPACE</code>, which apparently was generated manually (since I started the project using the RStudio GUI), so <code>roxygen</code> wouldn't update it. I am interested in how I can do this from the UI as well.</p>
  
  <p>This is what my build menu looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/gDW16.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gDW16.png" alt="RStudio Build Menu"></a></p>
  
  <p>My <code>NAMESPACE</code> file includes these imports but my test script still fails when trying to run the functions. Is this not possible as C. Braun suggests?</p>