Diferencia entre revisiones de «papa-deimos/instalacion/RKernelIns»
Apariencia
| Línea 21: | Línea 21: | ||
# cd Rnew | # cd Rnew | ||
# /opt/conda/mamba/DE-global_hackathon/miniconda3/bin/mamba create -n Rnew -c conda-forge r-base | # /opt/conda/mamba/DE-global_hackathon/miniconda3/bin/mamba create -n Rnew -c conda-forge r-base | ||
# /opt/conda/mamba/DE-global_hackathon/miniconda3/bin/mamba activate Rnew | # eval "$(/opt/conda/mamba/DE-global_hackathon/miniconda3/bin/mamba shell hook --shell bash)" | ||
# mamba activate Rnew | |||
(Rnew) # which R | |||
/opt/conda/mamba/DE-global_hackathon/miniconda3/envs/Rnew/bin/R | |||
</PRE> | |||
Instalando los paquetes para poder activarlo desde jupyterHUB | |||
<PRE style="shell"> | |||
# R | |||
</PRE> | </PRE> | ||
Revisión del 02:23 19 ago 2026
Instalación kernel de R
Se siguen las instrucciones de instalación encontradas en este enlace irkernel.
Siendo root en deimos:
# /opt/tljh/user/bin/conda install r
# /opt/tljh/user/bin/conda install r-essentials
# R
> install.packages('IRkernel')
> IRkernel::installspec(user = FALSE)
En una sesión de jupyter, arriba a la derecha en 'new' aparece 'R'.
Instalación desde un entorno de mamba
# cd /opt/conda/mamba/ # mkdir Rnew # cd Rnew # /opt/conda/mamba/DE-global_hackathon/miniconda3/bin/mamba create -n Rnew -c conda-forge r-base # eval "$(/opt/conda/mamba/DE-global_hackathon/miniconda3/bin/mamba shell hook --shell bash)" # mamba activate Rnew (Rnew) # which R /opt/conda/mamba/DE-global_hackathon/miniconda3/envs/Rnew/bin/R
Instalando los paquetes para poder activarlo desde jupyterHUB
# R