title: Error: package was installed by an R version with different internals; it needs to be reinstalled for use with this R version
body: <p>I am trying to install packages 'cluster' in R.</p>
  
  <pre><code>R Details:
  
  platform       x86_64-redhat-linux-gnu     
  arch           x86_64                      
  os             linux-gnu                   
  system         x86_64, linux-gnu           
  status                                     
  major          3                           
  minor          4.3                         
  version.string R version 3.4.3 (2017-11-30)
  nickname       Kite-Eating Tree
  </code></pre>
  
  <p>I am getting following error:</p>
  
  <pre><code>Loading required package: cluster
  Error: package \u2018cluster\u2019 was installed by an R version with different internals; it needs to be reinstalled for use with this R version
  In addition: Warning messages:
  1: In doTryCatch(return(expr), name, parentenv, handler) :
    unable to load shared object '/usr/lib64/R/modules//R_X11.so':
    /usr/lib64/R/modules//R_X11.so: undefined symbol: ALTSTRING_ELT
  2: package \u2018cluster\u2019 was built under R version 3.5.0
  </code></pre>
  
  <p>I tried to remove the package and re installed it.</p>
  
  <ol>
  <li>remove.packages("cluster")</li>
  <li>install.packages("cluster")</li>
  </ol>
  
  <p>I also tried with following:</p>
  
  <p>install.packages("<a href="https://cran.r-project.org/src/contrib/Archive/cluster/cluster_2.0.4.tar.gz" rel="nofollow noreferrer">https://cran.r-project.org/src/contrib/Archive/cluster/cluster_2.0.4.tar.gz</a>")
  install.packages("<a href="https://cran.r-project.org/src/contrib/Archive/cluster/cluster_2.0.0.tar.gz" rel="nofollow noreferrer">https://cran.r-project.org/src/contrib/Archive/cluster/cluster_2.0.0.tar.gz</a>")</p>
  
  <p>install.packages("<a href="https://cran.r-project.org/src/contrib/cluster_2.0.7-1.tar.gz" rel="nofollow noreferrer">https://cran.r-project.org/src/contrib/cluster_2.0.7-1.tar.gz</a>")
  install.packages("<a href="https://cran.r-project.org/src/contrib/Archive/cluster/cluster_2.0.2.tar.gz" rel="nofollow noreferrer">https://cran.r-project.org/src/contrib/Archive/cluster/cluster_2.0.2.tar.gz</a>")</p>
  
  <p>but nothing is working. Same error is coming.</p>
  
  <p>Please help. I am new to R stuff.</p>
  
  <p>Thanks</p>