I want to move R on Jupiter, but it doesn't work.

Asked 2 years ago, Updated 2 years ago, 131 views

I have tried many times to use R on Jupiter with reference to the site below, but it doesn't work at all. I have looked at all the question boxes except the site below, but I'm not sure why it doesn't work.

Perhaps installing Jupiter Notebook via Anaconda is a drag, but installing it via Anaconda did not work.

I don't know where to start, so as 2nd link above, I did exactly the same thing via RGui, but I got the following error and I don't know how to deal with it.

I'm sorry that I'm getting closer to a random question because I'm not strong enough.
I'd appreciate it if you could give me some advice.
Worst of all, I think I can reinstall Jupiter Notebook or Anaconda.

software used
Windows 10 (64bit)
Anaconda: 5.2.0 Jupiter Notebook Installed via Anaconda
R: 3.6.1

>devtools::install_github('IRkernel/IRkernel')
Downloading GitHub repo IRkernel/IRkernel@master
"C:\PROGRA~1\Git\cmd\git.exe" clone--depth1--no-hardlinks--recurse-submodules https://github.com/jupyter/jupyter_kernel_test.git C:\Users\reisa\AppData\Local\Temp\RtmpktdHtl\remotesaf82e67146b/IRkernel-67592db/test/jattkest
"C:\PROGRA~1\Git\cmd\git.exe" clone--depth1--no-hardlinks--recurse-submodules https://github.com/flying-sheep/ndjson-testrunner.git C:\Users\reisa\AppData\Local\Temp\RtmpktdHtl\remotesaf82e67146b/IRkernel-67592db/test/test/njtest/njst
These packages have more recent versions available.
Which would you like to update?

1—All                             
2—CRAN packages only              
3: None                            
4:digest (0.6.21 - > 0.6.22) [CRAN]
5—rlang (0.4.0 - > 0.4.1) [CRAN]

Enter one or more numbers, or empty line to skip updates:

   checking for file 'C:\Users\reisa\AppData\Local\Temp\RtmpktdHtl\remotesaf82e67146b\IRkernel-IRkernel-67592db/DESCRIPTION'...
√  checking for file 'C:\Users\reisa\AppData\Local\Temp\RtmpktdHtl\remotesaf82e67146b\IRkernel-IRkernel-67592db/DESCRIPTION'

-  preparing 'IRkernel': (540ms)
   Checking DESCRIPTION meta-information...
   Checking DESCRIPTION meta-information... 
√  checking DESCRIPTION meta-information

-  checking for LF line-ends in source and make files and shell scripts

-  checking for empty or unneeded directories
   Removed empty directory 'IRkernel/example-notebooks'

-  building 'IRkernel_1.0.2.9000.tar.gz'

Installing package into 'C:/Users/reisa/OneDrive/Document/R/win-library/3.6'
(as 'lib' is unspecified)
* installing* source* package 'IRkernel' ...
** using staged installation
Error in file (file, if (append) "a" else "w"): 
  (converted from warning) cannot open file 'C:/Users/reisa/OneDrive/hLg/R/win-library/3.6/00 LOCK-IRkernel/00new/IRkernel/DESCRIPTION': Invalid argument
ERROR:installing package DESCRIPTION failed for package 'IRkernel'
* removing 'C:/Users/reisa/OneDrive/Document/R/win-library/3.6/IRkernel'
Error: Failed to install 'IRkernel' from GitHub:
  (converted from warning) installation of package'C:/Users/reisa/AppData/Local/Temp/RtmpktdHtl/fileaf8738760be/IRkernel_1.0.2.99.tar.gz'had non-zero exit status

r jupyter-notebook

2022-09-30 20:12

2 Answers

I have a question, but if you understand that you want to run a jupyter notebooks instance where you can use R, I strongly recommend that you use a docker container instead of a manual build in a Windows environment that often stumbles over your environment.

After installing docker for windows,
From Terminal

 docker run-p 8888:8888 jupyter/datascience-notebook

I'll wait a little while I'll wait a little longer.
After pull/build/run,
http://127.0.0.1:8888/?token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
A login URL similar to the one shown in appears.Please open that address on Google Chrome.(Do not use IE/Edge)

Select Newkernel to choose Julia/Python/R.

Data Science tasks are also very compatible with environmental containerization from a repeatability perspective.

If you want to customize the container, try writing dockerfile.
You will see how convenient it is to create and deploy custom containers.


2022-09-30 20:12

On the official page https://github.com/IRkernel/IRkernel, the installation instructions read:Assume Jupiter and R are installed.

Step 1. Install IRkernel from CRAN

install.packages('IRkernel')

Step 2. Make the kernel available from Jupiter.

IRkernel::installspec()

The above command only installs to the current user.Use the command below to install for all users.

IRkernel::installspec (user=FALSE)


2022-09-30 20:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.