9 | | As for atlas, on the user side, it is done by setting the ``SAGE_R_LIB`` environment variable. |

| 9 | As for atlas, on the user side, it is done by setting the `SAGE_R_LIB` environment variable. |

| 10 | |

| 11 | To test this ticket, you should at least: |

| 12 | |

| 13 | - install `R` on your system (e.g. `sudo apt install r-base`) |

| 14 | - reinstall `r` and `rpy2` with `SAGE_R_LIB` set: |

| 15 | {{{ |

| 16 | export SAGE_R_LIB=/usr/lib/R/ |

| 17 | sage -f r |

| 18 | sage -f rpy2 |

| 19 | make build |

| 20 | }}} |

| 21 | - test Sage `R` command (this should/might show a different version than 3.4.4): |

| 22 | {{{ |

| 23 | sage -R |

| 24 | }}} |

| 25 | - test Sage's `R` interface: |

| 26 | {{{ |

| 27 | sage -t --long src/sage/interfaces/r.py |

| 28 | }}} |

| 29 | - test `rpy2`: |

| 30 | {{{ |

| 31 | sage -t --long src/sage/stats/r.py |

| 32 | }}} |