id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,merged,author,reviewer,upstream,work_issues,branch,commit,dependencies,stopgaps
25503,Allow the use of system's R installation,Thierry Monteil,,"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` command
- Sage's `r` interface
- Sage's `rpy2` Python package
- Sage's jupyter `IRkernel`
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:
- install `R` on your system (e.g. `sudo apt install r-base`)
- reinstall `r` and `rpy2` with `SAGE_R_LIB` set:
{{{
export SAGE_R_LIB=/usr/lib/R/
sage -f r
sage -f rpy2
make build
}}}
- test Sage `R` command (this should/might show a different version than 3.4.4):
{{{
sage -R
}}}
- test Sage's `R` interface:
{{{
sage -t --long src/sage/interfaces/r.py
}}}
- test `rpy2`:
{{{
sage -t --long src/sage/stats/r.py
}}}
",defect,closed,major,sage-duplicate/invalid/wontfix,packages: standard,duplicate,"R, sdl",Emmanuel Charpentier Erik Bray François Bissey Karl-Dieter Crisman Samuel Lelièvre Timo Kaufmann Michael Orlitzky,,Thierry Monteil,Dima Pasechnik,N/A,,u/tmonteil/allow_the_use_of_system_s_r_installation,eed2ea352af29fa6e6fb65d274c2e0078a7c07a6,,