title: org.renjin.eval.EvalException: Namespace org.renjin:tools has no symbol named '.get_internal_S3_generics'
body: <p>I need to extract keywords from News data saved as a text file using my java web application. I am using Language R and Renjin for doing this text mining (package tm from Renjin Web site) and extract keywords. The script really works in RStudio but cant run using Renjin in my Java Web app. Whenever I am trying to create a Corpus this Exception happens. Please suggest me a solution.</p>
  
  <p><strong>org.renjin.eval.EvalException: Namespace org.renjin:tools has no symbol named '.get_internal_S3_generics'</strong></p>
  
  <p>My R script file which reads a txt file and write keywords with their frequencies into a csv file is shown below:</p>
  
  <pre><code>library(tm)
  library(SnowballC)
  setwd('/home/lalkrishna/Desktop/keywordtest/')
  newsfile &lt;- scan(file = "0e3cdf1b-8fa4-4df0-8977-906d5865008b.txt",what = character() )
  news_Corpus &lt;- Corpus(VectorSource(newsfile))
  news_Corpus &lt;- tm_map(news_Corpus, removePunctuation) 
  news_Corpus &lt;- tm_map(news_Corpus, removeNumbers)
  news_Corpus &lt;- tm_map(news_Corpus, tolower)
  
  new_stopwords = scan("/home/lalkrishna/Desktop/keywordtest/stop-wordlist.csv", what = character())
  updated_stopword_list = c(stopwords("english"),new_stopwords)
  
  news_Corpus &lt;- tm_map(news_Corpus, removeWords, updated_stopword_list)
  news_Corpus &lt;- tm_map(news_Corpus, stemDocument)
  news_Corpus &lt;- tm_map(news_Corpus, stripWhitespace)
  news_Corpus &lt;- tm_map(news_Corpus, PlainTextDocument)
  dtm &lt;- DocumentTermMatrix(news_Corpus)
  tdm &lt;- TermDocumentMatrix(news_Corpus)
  
  freqs &lt;- as.data.frame(inspect(dtm))
  colSums(freqs)  
  which(apply(tdm, 1, sum) &gt; 2)
  write.csv(colSums(freqs), file = "term-freq.csv")
  </code></pre>