一、window环境下
首先,打开R 运行(是R ,非Rstudio):
install.packages('IRkernel')
其次,将R核为当前用户安装:
IRkernel::installspec()
最后,将R核应用到系统范围内:
IRkernel::installspec(user = FALSE)
利用以下命令检查安装结果:
jupyter kernelspec list
这里已经安装成功了!
二、Linux环境下
首先,如果有已经安装了R,在R里运行以下命令,需要安装Python feather-format module,
conda install -c conda-forge feather-format
install.packages('devtools')
devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec()
install.packages('feather')
如果没有安装R,在命令行运行:
conda install -c r r-essentials r-feather
conda install -c conda-forge feather-format
install.packages('devtools')
devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec()
install.packages('feather')