Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R doctests fail for no reason #15158

Open
sagetrac-felixs mannequin opened this issue Sep 5, 2013 · 5 comments
Open

R doctests fail for no reason #15158

sagetrac-felixs mannequin opened this issue Sep 5, 2013 · 5 comments

Comments

@sagetrac-felixs
Copy link
Mannequin

sagetrac-felixs mannequin commented Sep 5, 2013

Whether or not a certain R version is installed, should not affect doctests, if R works as intended.

Component: interfaces

Keywords: r-project

Author: Felix Salfelder

Branch/Commit: u/felixs/r_doctest @ 628d5af

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

@sagetrac-felixs sagetrac-felixs mannequin added this to the sage-6.1 milestone Sep 5, 2013
@sagetrac-felixs
Copy link
Mannequin Author

sagetrac-felixs mannequin commented Sep 5, 2013

comment:1

This is a defect, because sagelib is sometimes used outside ouf sage (the distribution). It will be a defect within sage (the distribution) as soon as R will not be built unconditionally (e.g. #14796).

@sagetrac-felixs sagetrac-felixs mannequin added t: bug and removed t: enhancement labels Sep 5, 2013
@kcrisman
Copy link
Member

kcrisman commented Sep 6, 2013

comment:2

Can you be more elaborate about what you mean by this? The description is remarkably cryptic.

But I think you mean the function tested in the function changed (correctly) in #13686. There is a good reason to test this function; it's a function in Sage, so it needs to be doctested. Perhaps there is a nice clever way to test this without allowing just any old output like ((25,1,3), 'R version -3.2.x') but that would need to be done, so we shouldn't remove the function. If that's not what you're implying, my apologies in advance.

@kcrisman
Copy link
Member

kcrisman commented Sep 6, 2013

Changed keywords from none to r-project

@sagetrac-felixs
Copy link
Mannequin Author

sagetrac-felixs mannequin commented Sep 6, 2013

comment:3

Replying to @kcrisman:

Can you be more elaborate about what you mean by this? The description is remarkably cryptic.

OK, I'll try.

But I think you mean the function tested in the function changed (correctly) in #13686.

The functions r_version and version in r.py are affected, also source and _source, this seems unrelated to #13686.

There is a good reason to test this function; it's a function in Sage, so it needs to be doctested.

The return values depend on the R version that is called.
For example newer R has additional L in the source. So in total, four doctests fail.

With this patch
http://trac.sagemath.org/changeset?new=628d5afab70880b7b7a24d3417d7ff996dbb816c&base=728e542453259b59b7e012f382e141652671d425&old=c29a7554ab4cfd9f0d17a8a242558db5b820b12a#file36
they pass (how can I point to a commit from here?).

Perhaps there is a nice clever way to test this without allowing just any old output like ((25,1,3), 'R version -3.2.x')

If R is version -3.2.x, and version returns that, everything works correctly, doesn't it?

but that would need to be done.

It's difficult to tell which version is present without a version call... In which way would the other tests pass, if R is a wrong one?

so we shouldn't remove the function. If that's not what you're implying, my apologies in advance.

No, I dont want to remove the checks, just allow the extra L and be a bit more tolerant about the version number.

@jdemeyer
Copy link

comment:4

Needs to be rebased.

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants