title: Error : could not find function "collocations"
body: <p>I need to create word cloud which include composed words. In this link <a href="https://stackoverflow.com/questions/36479780/making-a-wordcloud-but-with-combined-words">Making a wordcloud, but with combined words?</a>
   I find the response where I should use <code>quanteda</code> library. I installed  it but when I start to adapt the code posed in the above link here:</p>
  
  <pre><code># detect the collocations
  colls &lt;- collocations(docs, n = 200, size = 2)
  </code></pre>
  
  <p>The program returns this error:</p>
  
  <blockquote>
    <p>Error in collocations(docs, n = 1500, size = 2) :    could not find
    function "collocations"</p>
  </blockquote>
  
  <p>It's really weird because according to <a href="https://www.rdocumentation.org/packages/quanteda/versions/0.9.6-9/topics/collocations" rel="nofollow noreferrer">https://www.rdocumentation.org/packages/quanteda/versions/0.9.6-9/topics/collocations</a></p>
  
  <p>the <code>docs</code> should be a <code>Corpus</code> object which is the case :</p>
  
  <pre><code>&gt; class(docs)
  [1] "SimpleCorpus" "Corpus" 
  </code></pre>
  
  <p>what do you think?
  thank you for your suggestions !</p>