Opened 9 years ago

Closed 9 years ago

#12065 closed defect (duplicate)

Failing doctest - R installation broken?

Reported by: flint Owned by: tbd
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: packages: standard Keywords: R, lattice, r-project
Cc: burcin Merged in:
Authors: Reviewers: Burcin Erocal, Volker Braun
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: #12057 Stopgaps:

Status badges

Description

I'm working with Sage 4.7.2 under Linux 2.6.39-gentoo-[changeset:3 r3]. When I run the doctest

./sage -t devel/sage-main/sage/interfaces/r.py

I obtain the following error message:

sage -t  "devel/sage-main/sage/interfaces/r.py"             

File "/home/flint/sage-4.7.2/devel/sage-main/sage/interfaces/r.py", line 997:
    sage: r.library("lattice")
Exception raised:
    Traceback (most recent call last):
      File "/home/flint/sage-4.7.2/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/home/flint/sage-4.7.2/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/home/flint/sage-4.7.2/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_37![7]>", line 1, in <module>
        r.library("lattice")###line 997:
    sage: r.library("lattice")
      File "/home/flint/sage-4.7.2/local/lib/python/site-packages/sage/interfaces/r.py", line 572, in library
        raise ImportError, "%s"%ret
    ImportError: Loading required package: lattice
    Warning message:
    In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
      there is no package called 'lattice'

1 items had failures:
   1 of   9 in __main__.example_37
*Test Failed* 1 failures.
For whitespace errors, see the file /home/flint/.sagetmp/r_3534.py
     [3.4 s]
 
----------------------------------------------------------------------
The following tests failed:


    sage -t  "devel/sage-main/sage/interfaces/r.py"
Total time for all tests: 3.4 seconds

Change History (8)

comment:1 follow-up: Changed 9 years ago by vbraun

  • Keywords r-project added

Can you try #12057 ?

comment:2 Changed 9 years ago by burcin

  • Cc burcin added
  • Type changed from PLEASE CHANGE to defect

comment:3 in reply to: ↑ 1 ; follow-up: Changed 9 years ago by flint

Thank you. This fixed my problem.

comment:4 in reply to: ↑ 3 Changed 9 years ago by burcin

Replying to flint:

Thank you. This fixed my problem.

Volker, shall we close this as a duplicate and drop a note at #12057?

comment:5 Changed 9 years ago by vbraun

  • Authors set to Volker Braun
  • Dependencies set to 12057
  • Status changed from new to needs_review

Fixed by #12057

comment:6 Changed 9 years ago by vbraun

  • Reviewers set to Burcin Erocal
  • Status changed from needs_review to positive_review

comment:7 Changed 9 years ago by jdemeyer

  • Authors Volker Braun deleted
  • Dependencies changed from 12057 to #12057
  • Milestone changed from sage-4.8 to sage-duplicate/invalid/wontfix
  • Reviewers changed from Burcin Erocal to Burcin Erocal, Volker Braun

comment:8 Changed 9 years ago by jdemeyer

  • Resolution set to duplicate
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.