R 3.5 安装及更新
安装
vim /etc/apt/sources.list
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
sudo apt-get update
sudo apt-get install build-essential git gfortran libxml2-dev libfreetype6-dev
libbz2-dev liblapack-dev libpcre++-dev liblzma-dev libcurl4-openssl-dev libssl-dev
libgdal-dev libgdal1i libudunits2-dev libjq-dev libcairo2-dev libprotobuf-dev libv8-3.14-dev
protobuf-compiler libftgl2 libcgal-dev libglu1-mesa-dev libglu1-mesa-dev libx11-dev
libfreetype6-dev libproj-dev
-y
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo apt-get install r-base
r-base-dev
更新
rvcheck::update_all()
安装LaTeX
install.packages("tinytex")
tinytex::install_tinytex() # install TinyTeX
安装odbc及驱动sudo apt-get install unixodbc unixodbc-dev
devtools::install_github("r-dbi/odbc")
sudo wget https://drivers.rstudio.org/7C152C12/odbc-install.sh
sudo chmod +x odbc-install.sh
sudo ./odbc-install.sh
评论
发表评论