更新IPython/Jupyter中使用的R [英] Updating R that is used within IPython/ Jupyter

查看:248
本文介绍了更新IPython/Jupyter中使用的R的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Jupyter Notebook中使用R,因此我通过R Essentials进行了安装(请参阅:

I wanted to use R within Jupyter Notebook so I installed via R Essentials (see: https://www.continuum.io/blog/developer/jupyter-and-conda-r). The version that got installed is the following:

R.Version()

Out[2]:
$platform
"x86_64-w64-mingw32"
$arch
"x86_64"
$os
"mingw32"
$system
"x86_64, mingw32"
$status
""
$major
"3"
$minor
"1.3"
$year
"2015"
$month
"03"
$day
"09"
$svn rev
"67962"
$language
"R"
$version.string
"R version 3.1.3 (2015-03-09)"
$nickname
"Smooth Sidewalk"

我试图更新R并安装一些软件包(例如RWeka)无济于事.我一直在寻找各种资源,但似乎没有任何指向我正确方向的信息.有谁知道该怎么办?

I have attempted to update R and install some packages (like RWeka for example) to no avail. I have looked for various sources but nothing seems to point me in the right direction. Does anyone know what to do?

我的主要动机是尝试使用R库,但会收到如下警告:

My main motivation is trying to use R libaries but will get warnings like the following:

library("RWeka")

Warning message:
: package 'RWeka' was built under R version 3.2.4Warning message:
In unique(paths): bytecode version mismatch; using eval

推荐答案

如果您想使用conda软件包,请尝试conda update --all,但我认为Windows仍然没有R 3.2.x软件包.

If you want to stay with conda packages, try conda update --all, but I think there are still no R 3.2.x packages for windows.

您还可以通过r-project.org上可用的二进制安装程序安装R,手动安装R内核;例如通过

You can also install R via the binary installer available at r-project.org, install the R kernel manually; e.g. via

install_github("irkernel/repr")
install_github("irkernel/IRdisplay")
install_github("irkernel/IRkernel")

然后在笔记本中使该内核可用

and then make this kernel available in the notebook

IRkernel::installspec(name = 'ir32', displayname = 'R 3.2')

这篇关于更新IPython/Jupyter中使用的R的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆