Skip to content

Missing r-package lattice #40215

@tobiasdiez

Description

@tobiasdiez

Steps To Reproduce

In conda with rpy2 installed, run tests.
https://github.com/sagemath/sage/actions/runs/15484009412/job/43594875438#step:15:4175

Expected Behavior

No failure

Actual Behavior

sage -t --warn-long 5.0 --random-seed=162378764216917203877121796522172997184 src/sage/interfaces/r.py
**********************************************************************
Error: Failed example:: Exception raised:
Traceback (most recent call last):
  File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.11/site-packages/sage/doctest/forker.py", line 730, in _run
    self.compile_and_execute(example, compiler, test.globs)
  File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.11/site-packages/sage/doctest/forker.py", line 1154, in compile_and_execute
    exec(compiled, globs)
  File "<doctest sage.interfaces.r.R.plot[5]>", line 1, in <module>
    r.library("lattice")
  File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.11/site-packages/sage/interfaces/r.py", line 860, in library
    raise ImportError("R library {} not installed".format(library_name))
ImportError: R library lattice not installed

    r.library("lattice")
Exception raised:
    Traceback (most recent call last):
      File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.11/site-packages/sage/doctest/forker.py", line 730, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.11/site-packages/sage/doctest/forker.py", line 1154, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.interfaces.r.R.plot[5]>", line 1, in <module>
        r.library("lattice")
      File "/Users/runner/miniconda3/envs/sage-dev/lib/python3.11/site-packages/sage/interfaces/r.py", line 860, in library
        raise ImportError("R library {} not installed".format(library_name))
    ImportError: R library lattice not installed
**********************************************************************
1 item had failures:
   1 of   7 in sage.interfaces.r.R.plot
R[write to console]: Warning messages:

R[write to console]: 1: 
    [258 tests, 1 failure, 2.69s wall]
R[write to console]: In sage10 + sage6 :
R[write to console]: 
 
R[write to console]:  longer object length is not a multiple of shorter object length

sage -t --warn-long 5.0 --random-seed=162378764216917203877121796522172997184 src/sage/interfaces/read_data.py
R[write to console]: 2: 
    [9 tests, 0.01s wall]
R[write to console]: In sqrt(sage10) :
R[write to console]:  NaNs produced

R[write to console]: 3: 
R[write to console]: In sqrt(sage4) :
R[write to console]:  NaNs produced

The r-feature should probably also test for the lattice library or there should be a special r-library lattice feature that guards this test.

Additional Information

No response

Environment

  • OS:
  • Sage Version:

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions