Paso 1 Crear un entorno virtual
# 在Linux环境下
conda create -n renv # 创建环境
conda activate renv # 激活环境
conda deactivate # 退出环境
Paso 2 Instalar el lenguaje R
# 安装R 4.1.4 版本
conda install -c conda-forge r-base=4.1.4
Paso 3 Instale el paquete R
# 假设安装glmnet包
conda install -c conda-forge r-glmnet
# 假设安装IRkernel包
conda install -c conda-forge r-IRkernel