Skip to content

r_jupyter package is broken #24585

@sagetrac-tmonteil

Description

@sagetrac-tmonteil

First, when trying to sage -i r_jupyter, the install fails since the spkg-install script is not executable (apparently nobody tried to install that package for a while):

cd '/opt/sagemath/sage-source' && \
    source '/opt/sagemath/sage-source/src/bin/sage-env' && \
    sage-logger -p '/opt/sagemath/sage-source/build/pkgs/r_jupyter/spkg-install' /opt/sagemath/sage-source/logs/pkgs/r_jupyter.log
[r_jupyter] /opt/sagemath/sage-source/build/bin/sage-logger: line 89: /opt/sagemath/sage-source/build/pkgs/r_jupyter/spkg-install: Permission denied

Then, if i make that file executable, the script does not work at all:

[r_jupyter] Warning message:
[r_jupyter] package 'IRkernel' is not available (for R version 3.4.3) 
[r_jupyter] > IRkernel::installspec()
[r_jupyter] Error in loadNamespace(name) : there is no package called 'IRkernel'
[r_jupyter] Calls: :: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
[r_jupyter] Execution halted

Documentation can be found at https://irkernel.github.io/installation/

We modify it so that the kernel is installed at the right place (otherwise it is installed in the user's ~/.local/share/jupyter/kernels/ir/ directory).

CC: @vbraun @EmmanuelCharpentier

Component: packages: optional

Keywords: sdl

Author: Thierry Monteil

Branch/Commit: 13ffffe

Reviewer: Emmanuel Charpentier

Issue created by migration from https://trac.sagemath.org/ticket/24585

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions