title: Does roxygen2 automatically write NAMESPACE directives for "Imports:" packages?
body: <h2>tl;dr version of my question</h2>
  
  <p>If I want to import packages, do I have to manually write <code>import()</code> directives into my NAMESPACE file? It seems like roxygen2 won't magically do that for me, even if I have them listed as "Imports:" in my description.</p>
  
  <h2>Fuller Version</h2>
  
  <p>This is a pretty dumb question, but I ask because the answer's not obvious to me.</p>
  
  <p>I use <code>roxygen2</code> to handle <a href="https://github.com/briandk/granovaGG" rel="noreferrer">my R package</a> documentation. When I want to be sure a function is exported, I add an <code>@export</code> tag to its roxygen block. Subsequent runs of <code>roxygenize()</code> will write the NAMESPACE directive accordingly.</p>
  
  <p>But, <a href="https://github.com/briandk/granovaGG" rel="noreferrer">my package</a> currently imports several others:</p>
  
  <pre><code>Depends:
      R (&gt;= 2.13.0),
      ggplot2 (&gt;= 0.8.9)
  Imports:
      RColorBrewer,
      plyr,
      gridExtra
  </code></pre>
  
  <p>It appears that while <code>roxygen2</code> <em>will</em> rewrite the NAMESPACE directive for <em>exported</em> functions, it won't automatically rewrite NAMESPACE to reflect packages I've designated should be imported in my DESCRIPTION.</p>