#在远程服务器上使用jupyter notebook运行R
#安装R
- 进入清华源,点击CRAN
- 点击 Download R for Linux
- 点击ubuntu
- 根据主页的代码安装R 4.1
#安装R kernel for jupyter notebook
- 在R的交互环境中运行如下代码
> install.packages("IRkernel")
> IRkernel::installspec(user = FALSE) #运行时报错
#改为如下代码
> IRkernel::installspec()
#启动jupyter notebook即可加载R内核