R编译备忘

Download: https://cran.r-project.org/src/base/

gfortran libcurl4-openssl-dev libreadline-dev libxt-dev libbz2-dev liblzma-dev libicu-dev libpng-dev libjpeg-dev libtiff-dev libcairo2-dev

./configure \ 
    --prefix=$HOME/.local/lib/R/4.1.3/ \ 
    --enable-R-shlib \ 
    --with-blas \ 
    --with-lapack \ 
    --enable-memory-profiling 

Environment variable
RSTUDIO_WHICH_R

Link
Manual
Custom R installation for RStudio

kento

kento