警告
本文最后更新于 2023-07-05,文中内容可能已过时。
由于换了一台戴尔 xps 工作机,需要重新安装 R
。在此顺便记录一下过程。
apt-get
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
sudo apt-get install \
gfortran \
libcurl4-gnutls-dev \
libreadline-dev \
libbz2-dev \
liblzma-dev \
libpcre++-dev \
libpango1.0-dev
sudo apt-get install \
libfreetype6-dev \
libpng-dev \
libtiff5-dev \
libjpeg-dev \
libmariadbclient-dev
|
textlive
1
2
3
4
5
6
7
|
sudo apt-get install texlive
sudo apt-get install texlive-fonts-extra
wget http://mirrors.ctan.org/fonts/inconsolata.zip
unzip inconsolata.zip
cp -Rfp inconsolata/* /usr/share/texmf
mktexlsr
|
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
export R_VERSION=R-4.3.1
cd /tmp && \
wget --no-check-certificate https://cran.r-project.org/src/base/R-4/${R_VERSION}.tar.gz && \
tar -xvf ${R_VERSION}.tar.gz && \
cd ${R_VERSION} && \
./configure \
--prefix=/usr/local/R-4/${R_VERSION} \
--enable-memory-profiling \
--enable-R-shlib \
--with-blas \
--with-lapack \
--with-x=no && \
make && sudo make install && \
ln -sfn /usr/local/R-4/${R_VERSION}/bin/R /usr/bin/R && \
ln -sfn /usr/local/R-4/${R_VERSION}/bin/Rscript /usr/bin/Rscript && \
rm -rf /tmp/${R_VERSION}*
|