I want to run R on Jupyter, but I can't do it.



  • I’m trying many times to use R on Jupyter, but it doesn’t work. We have installed all the question boxes other than the following sites, but we don’t know why it’s not working well.

    • https://ryamada.hatenadiary.jp/entry/20171115/1510731010
    • https://kato-robotics.hatenablog.com/entry/2018/03/26/171754

    I think that the installation of Jupyter Notebook via upconda has become an obstacle, but it did not work even if it was installed via conconda.

    I don't know where to explain. https://kato-robotics.hatenablog.com/entry/2018/03/26/171754 As I did exactly the same thing via RGui but the following error occurred and I do not know well.

    I'm sorry that I'm close to the question that I'm throwing without compromising.
    I would like to give advice.
    Worst, I feel good to reinstall Jupyter Notebook or Verconda.

    Software
    Windows 10 (64bit)
    Anacは: 5.2.0 Jupyter Notebook installed via Verconda
    R:3.6.1

    > devtools::install_github('IRkernel/IRkernel')
    Downloading GitHub repo IRkernel/IRkernel@master
    "C:\PROGRA~1\Git\cmd\git.exe" clone --depth 1 --no-hardlinks --recurse-submodules https://github.com/jupyter/jupyter_kernel_test.git C:\Users\reisa\AppData\Local\Temp\RtmpktdHtl\remotesaf82e67146b/IRkernel-IRkernel-67592db/tests/testthat/jkt
    "C:\PROGRA~1\Git\cmd\git.exe" clone --depth 1 --no-hardlinks --recurse-submodules https://github.com/flying-sheep/ndjson-testrunner.git C:\Users\reisa\AppData\Local\Temp\RtmpktdHtl\remotesaf82e67146b/IRkernel-IRkernel-67592db/tests/testthat/njr
    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 an 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-endings 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/ドキュメント/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/00LOCK-IRkernel/00new/IRkernel/DESCRIPTION': Invalid argument
      ERROR: installing package DESCRIPTION failed for package 'IRkernel'
    • removing 'C:/Users/reisa/OneDrive/ドキュメント/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.9000.tar.gz’ had non-zero exit status


  • If you understand that you want to run a jupyter notebooks instance that you can use R, we strongly recommend using the "docker container" instead of a manual build in a Windows environment that is common to build environment.

    install docker for windows
    From Terminal

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

    and wait a little.
    pull / build / run
    http://127.0.0.1:8888/?token=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
    You will see a login URL like this. google google (Do not use IE/Edge)

    Julia / Python / R

    The task of data science is excellent in terms of環境roducibility.

    If you want to custom containers, check how to write dockerfile.
    I think you can understand how to create and deploy custom containers.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2