Failed to install R on Centos 7
<p>I have CentOS 7 (3.10.0-123.el7.x86_64) and I seem not be able to install R and then get Rstudio server working.</p>

<p>This is what I did:</p>

<pre><code>rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

yum install R
</code></pre>

<p>Then I got this error:</p>

<p><code>
Transaction check error:
  file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
  file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
  file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
</code></p>

<p>I am not sure what it is. There is nothing from <code>whereis R</code> because it didn't install.</p>

<p>If I install Rstudio Server, it would fail to start the service and said <code>ERROR unable to find installation of R in the system</code></p>

<p>Can someone tell me how to install R properly on Centos 7?</p>