Skip to content

R breaks if SAGE_LOCAL undefined #10967

@sagetrac-ahd

Description

@sagetrac-ahd

horatio@havelock ~ $ R
/Users/horatio/bin/R: line 212: /lib/R//etc/ldpaths: No such file or directory

This is because on line 31 of the script someone rewrote $R_HOME_DIR in terms of $SAGE_LOCAL. When SAGE_LOCAL is missing from the environment of the running shell, the R script breaks. The fix is to test for empty SAGE_LOCAL before the rewrite.

This is from Sage version 4.6.2.

Depends on #9668

CC: @jasongrout @williamstein @nexttime

Component: packages: standard

Keywords: R script SAGE_LOCAL R.sh.in spkg local/bin r-project

Reviewer: Jeroen Demeyer

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions