Skip to content

R

Install

  • https://cran.r-project.org/bin/linux/debian/
sudo apt install r-base r-base-dev
sudo apt install r-cran-tidyverse
  • https://github.com/cderv/r-bucket
scoop install main/r
scoop install main/rtools
scoop install extras/rstudio

Config

  • https://mirrors.tuna.tsinghua.edu.cn/help/CRAN/
cat > ~/.Rprofile << 'EOF'
options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
options(BioC_mirror="https://mirrors.tuna.tsinghua.edu.cn/bioconductor")
EOF
  • https://microsoft.github.io/language-server-protocol/
  • https://github.com/REditorSupport/languageserver/
# languageserver依赖项
sudo apt install build-essential libcurl4-openssl-dev libssl-dev libxml2-dev
# 在bash中为系统R安装特定包,并安装包推荐依赖
Rscript -e "install.packages('languageserver', dependencies=TRUE)"

Community

  • https://d.cosx.org/