title: Installing xml2 in R in Fedora 27
body: <p>I'm having trouble installing xml2 in RStudio, running Fedora 27. On running <code>install.packages('xml2')</code>, I get the following error: </p>
  
  <pre><code>installing to /home/ryi/R/x86_64-redhat-linux-gnu-library/3.4/xml2/libs
  ** R
  ** inst
  ** preparing package for lazy loading
  ** help
  Error : /tmp/Rtmp2sKZQZ/R.INSTALL689b37bd918d/xml2/man/read_xml.Rd:47: unable to load shared object '/home/ryi/R/x86_64-redhat-linux-gnu-library/3.4/xml2/libs/xml2.so':
    libicui18n.so.58: cannot open shared object file: No such file or directory
  ERROR: installing Rd objects failed for package ‘xml2’
  * removing ‘/home/ryi/R/x86_64-redhat-linux-gnu-library/3.4/xml2’
  Warning in install.packages :
    installation of package ‘xml2’ had non-zero exit status
  
  The downloaded source packages are in
      ‘/tmp/RtmpPs5Gzi/downloaded_packages’
  </code></pre>
  
  <p>I noticed in my <code>/usr/lib64/</code>, I have <code>libicui18n.so.57</code> only, so I tried copying a <code>libicui18n.so.58</code> there, and I got the following error:</p>
  
  <pre><code>installing to /home/ryi/R/x86_64-redhat-linux-gnu-library/3.4/xml2/libs
  ** R
  ** inst
  ** preparing package for lazy loading
  ** help
  Error : /tmp/Rtmp908Ecf/R.INSTALL653812e0e41f/xml2/man/read_xml.Rd:47: unable to load shared object '/home/ryi/R/x86_64-redhat-linux-gnu-library/3.4/xml2/libs/xml2.so':
    libicuuc.so.58: cannot open shared object file: No such file or directory
  ERROR: installing Rd objects failed for package ‘xml2’
  * removing ‘/home/ryi/R/x86_64-redhat-linux-gnu-library/3.4/xml2’
  Warning in install.packages :
    installation of package ‘xml2’ had non-zero exit status
  
  The downloaded source packages are in
      ‘/tmp/RtmpPs5Gzi/downloaded_packages’
  </code></pre>
  
  <p>And I noticed the same problem -- I have version .57, not version .58 of this library as well. Before I repeat this over and over, is this in fact a shared library problem? Or, is there a way to fix this all at once?</p>
  
  <p>I have xml2 installed (<code>libxml2-devel-2.9.5-2.fc27.x86_64</code>) already. </p>