Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating R that is used within IPython/ Jupyter

Tags:

r

ipython

jupyter

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"

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?

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
like image 759
Kevin Avatar asked Sep 19 '25 15:09

Kevin


1 Answers

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.

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')
like image 179
Jan Katins Avatar answered Sep 22 '25 07:09

Jan Katins