-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Allow the use of system's R installation #25503
Comments
This comment has been minimized.
This comment has been minimized.
Commit: |
This comment has been minimized.
This comment has been minimized.
comment:4
We should probably also update |
Changed keywords from none to R |
This comment has been minimized.
This comment has been minimized.
comment:6
So - if a system-wide install is used, does it mean that the standard R configuration files will be picked up? With its own R Sage makes sure that nothing is used. |
comment:7
Replying to @novoselt:
I would say yes (see my last comment about |
comment:9
Replying to @novoselt:
Yes.
It is up to the user to decide whether she wants to use the system's R or Sage's R, the default remains to build and use Sage's R. |
comment:10
I would be curious to hear embray's opinion on this. I know that he has been working on allowing to use system packages more generally. Btw, there are merge conflicts. |
comment:11
Why should this work for the I think that any installation of Sage which does not install its own R, Python, Singular, etc., should not have functioning But if you really want |
comment:12
I never changed those help messages in sage-on-gentoo. There is an ambiguity I am exploiting. You think it only means R from sage the distribution, I take it to mean R that sage has been configured to use. You could argue that the capitalisation means we are talking about the distribution. Should we have a semantic war :) In any case, while there is no real benefit, compared to running R directly, I don't see why the behavior shouldn't be preserved. Existing scripts shouldn't break because you changed some underlying bits. |
comment:13
Seriously, if changing the documentation is your only problem with this, I'd be glad to just do that. Do you have a preferred wording? |
comment:14
I think that if the system has |
comment:15
Replying to @jhpalmieri:
So you don't think we should support people with old script that may call |
comment:16
If Sage is not going to install a copy of I don't really buy your ambiguity argument, and I think that you are misleading people if How many people really use commands like If you really want to proceed, note that
so maybe they should all omit "Sage's". I won't be happy with that change, so you'll need another reviewer, and I also think you should ask for more opinions. |
comment:17
For what its worth I agree with @kiwifb's interpretation. Even a distro can have multiple versions of a dependency installed. Sometimes it can be useful to "start the R sage uses", for example for debugging. |
comment:18
I would also agree with interpreting "Sage's R" as "the R that Sage has been configured to use", |
comment:19
I think John feels very strongly about his interpretation. The heart of his argument being if it says it is sage's own, the sage devs owns the bugs. As distros guys we all know where to stand about that. Sometimes it is your own bugs (build system, distro specificities) and sometimes it belong to upstream. In any case you may carry patches and sage-the-distro has a long history about "owning" its own patches regardless of upstream as you well know. In any case piping on the matter on sage-devel doesn't cost us much since it is now, in effect, a sage-8.5 ticket. |
comment:20
I don't feel very strongly about it either way, maybe printing a clear information (either "this is a sage package" or "this is a system package") first is a good compromise. |
comment:21
Replying to @jhpalmieri:
I disagree. I think these commands should really just mean "run the same Python/R/etc. that Sage is using, with all the sage-related environment variables set". |
comment:22
Replying to @jhpalmieri:
That's not true that there is no reason for it. For example, what if you want to run R in the Sage environment so that you can run sage commands in R with RPy? Or interface with other software that is included in the Sage distribution? From the user's perspective, |
Changed keywords from R to R, sdl |
comment:25
I've opened #28884 with a working (on Debian at least) branch allowing use of system's R. Feel free to review. |
comment:26
Is there still anything to do here? I don't really use R inside or outside of sage... has #28884 caused any problems? |
comment:27
not sure about Jupyter kernel for R, but this is a different story. A new ticket, if you must. |
Reviewer: Dima Pasechnik |
The aim of this ticket is to allow Sage to use the system's
R
, instead of building its own.It should work for:
sage -R
commandr
interfacerpy2
Python packageIRkernel
Similarly to the way one can decide to use the system ATLAS when building Sage,
on the user side, building Sage so that it uses the system R is achieved by setting
the
SAGE_R_LIB
environment variable.To test this ticket, you should at least:
R
on your system (e.g.sudo apt install r-base
)r
andrpy2
withSAGE_R_LIB
set:R
command (this should/might show a different version than 3.4.4):R
interface:rpy2
:CC: @EmmanuelCharpentier @embray @kiwifb @kcrisman @slel @timokau @orlitzky
Component: packages: standard
Keywords: R, sdl
Author: Thierry Monteil
Branch/Commit: u/tmonteil/allow_the_use_of_system_s_r_installation @
eed2ea3
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/25503
The text was updated successfully, but these errors were encountered: