碰到一个客户必须要R3.6....然后没辙,只好给他装一个。
顺便记录一下如何安装指定版本的R,要替换其他版本只需要代码中的3.6.0改掉就行了。
<code><span class="pln">yum groupinstall "Development Tools" -y yum install -y wget sudo wget https</span><span class="pun">://</span><span class="pln">cran.r</span><span class="pun">-</span><span class="pln">project.org</span><span class="pun">/</span><span class="pln">src</span><span class="pun">/</span><span class="pln">base</span><span class="pun">/</span><span class="pln">R</span><span class="lit">-3</span><span class="pun">/</span><span class="pln">R</span><span class="lit">-3.6.0</span><span class="pln">.tar.gz tar zxvf R</span><span class="lit">*</span><span class="pln">.tar.gz </span><span class="pln">cd R*</span><span class="pln"> .</span><span class="pun">/</span><span class="pln">configure</span><span class="pun">;</span><span class="pln"> make </span><span class="pln">sudo make install</span></code>