title: How do i fix "Error: could not find function "tokens"" in R (in RStudio)?
body: <p>While learning R, I am asked to use the package "quanteda" and apply the function "tokens". Unfortunately, when I try to do so, I get the message </p>
  
  <pre><code>Error: could not find function "tokens".
  </code></pre>
  
  <p>But I can use, for example, "tokenize".</p>
  
  <p>My code is:</p>
  
  <pre><code>  train.tokens &lt;- tokens(train$Text, what = "word", remove_numbers = TRUE, 
                    remove_punct = TRUE,remove_symbols = TRUE, remove_hyphens = TRUE).
  </code></pre>
  
  <p>As a side note, when I try to automatically update the quanteda package, it says that I have the 0.9.8.3 version and that the newest available is 0.9.8.5. After it gets updated, nothing happens. </p>
  
  <p>Thank you!</p>