title: R tm removeWords stopwords is not removing stopwords
body: <p>I'm using the R tm package, and find that almost none of the <code>tm_map</code> functions that remove elements of text are working for me.</p>
  
  <p>By 'working' I mean for example, I'll run:</p>
  
  <pre><code>d &lt;- tm_map(d, removeWords, stopwords('english'))
  </code></pre>
  
  <p>but then when I run</p>
  
  <pre><code>ddtm &lt;- DocumentTermMatrix(d, control = list(
      weighting = weightTfIdf,
      minWordLength = 2))
  findFreqTerms(ddtm, 10)
  </code></pre>
  
  <p>I still get:</p>
  
  <pre><code>[1] the     this
  </code></pre>
  
  <p>...etc., and a bunch of other stopwords.</p>
  
  <p>I see no error indicating something has gone wrong.  Does anyone know what this is, and how to make stopword-removal function correctly, or diagnose what's going wrong for me?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>There is an error earlier up that I didn't catch:</p>
  
  <pre><code>Refreshing GOE props...
  ---Registering Weka Editors---
  Trying to add database driver (JDBC): RmiJdbc.RJDriver - Warning, not in CLASSPATH?
  Trying to add database driver (JDBC): jdbc.idbDriver - Warning, not in CLASSPATH?
  Trying to add database driver (JDBC): org.gjt.mm.mysql.Driver - Warning, not in CLASSPATH?
  Trying to add database driver (JDBC): com.mckoi.JDBCDriver - Warning, not in CLASSPATH?
  Trying to add database driver (JDBC): org.hsqldb.jdbcDriver - Warning, not in CLASSPATH?
  [KnowledgeFlow] Loading properties and plugins...
  [KnowledgeFlow] Initializing KF...
  </code></pre>
  
  <p>It is Weka that is removing stopwords in tm, right?  So this could be my problem?</p>
  
  <p><strong>Update 2</strong></p>
  
  <p>From <a href="https://stackoverflow.com/questions/6720229/help-with-adding-the-database-drivers-inorder-to-use-weka-classes">this</a>, this error appears to be unrelated.  It's about the db, not about stopwords.</p>