S.F. Yeh
S.F. Yeh

Reputation: 59

how to update R version in jupytor notebook?

I use the latest version of anaconda to create an environment for R to run

But as I open it with Jupyter notebook and useR.version to check the R version, it shows that my R version is R version 3.6.1 (2019-07-05).

However, the latest R version should be 3.6.3 (2020-02-29) or even 4.0.0 (2020-04-24)

So I refer to this post and try to update r version like following:

install.packages('IRkernel')
IRkernel::installspec(name = 'ir35', displayname = 'R 3.6.3')

then restart the notebook.

But it didn't work. Just nothing happened. No errors are shown.

Upvotes: 0

Views: 5834

Answers (2)

Pouya Ghezel
Pouya Ghezel

Reputation: 1

But previous answer doesn't make any difference cause you just change the name. check it by writing this prompt "version

Upvotes: -1

S.F. Yeh
S.F. Yeh

Reputation: 59

I found that the command cannot update the .ipynb that was already created under an old version of R.

But the Jupiter environment did provide the new version after the command line IRkernel::installspec(name = 'ir35', displayname = 'R 4.0.0').

It can be used when adding a new Notebook as the following pic. shows:

where you can choose the new R version

Upvotes: 1

Related Questions