您的位置:首页 > 其它

ubuntu15.04上jupyter notebook嵌入R语言

2016-05-13 16:36 357 查看
Reflink:http://irkernel.github.io/

ctrl+shift+T调出Terminal

输入:sudo apt-get install libzmq3-dev

在terminal中输入
sudo R
,调用R语言;

输入

install.packages(c('rzmq','repr','IRkernel','IRdisplay'),
repos = c('http://irkernel.github.io/', getOption('repos')),
type = 'source')


使得R核心可以被Jupyter使用:

还是在R环境里:
The kernel spec can be installed for the current user with the following line from R:
> IRkernel::installspec()
To install system-wide, set user to False in the installspec command:

>IRkernel::installspec(user = FALSE)


之后,当然就可以用了~

分享下一些R语言经典的资料:

https://pan.baidu.com/s/1i5povel R语言的编程艺术+数据挖掘和R语言

https://pan.baidu.com/s/1o7NZNGQl R语言实战
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: