#9847: Handle a preset R_PROFILE or R_HOME variables
----------------------------------+-----------------------------------------
       Reporter:  mpatel          |         Owner:  GeorgSWeber                 
       
           Type:  defect          |        Status:  new                         
       
       Priority:  blocker         |     Milestone:  sage-5.9                    
       
      Component:  build           |    Resolution:                              
       
       Keywords:                  |   Work issues:                              
       
Report Upstream:  N/A             |     Reviewers:  Leif Leonhardy, Karl-Dieter 
Crisman
        Authors:  Jeroen Demeyer  |     Merged in:                              
       
   Dependencies:  #9906           |      Stopgaps:                              
       
----------------------------------+-----------------------------------------
Changes (by {'newvalue': u'Jeroen Demeyer', 'oldvalue': ''}):

  * author:  => Jeroen Demeyer


Old description:

> A preset `R_PROFILE` variable can cause some R packages to fail to
> build/install and interfere with doctests.
>
> Georg Grafendorfer [http://groups.google.com/group/sage-
> release/browse_thread/thread/b2827cba9319bfed/41eab313614e6d2a#41eab313614e6d2a
> reported this problem on sage-release].
>
> For `R_HOME`, this yields a doctest failure if set:
> {{{
> **********************************************************************
> File "devel/sage/sage/misc/interpreter.py", line 187, in
> sage.misc.interpreter.SageInteractiveShell.system_raw
> Failed example:
>     shell.system_raw('R --version')
> Expected:
>     R version ...
> Got:
>     WARNING: ignoring environment value of R_HOME
>     R version 2.15.2 (2012-10-26) -- "Trick or Treat"
>     Copyright (C) 2012 The R Foundation for Statistical Computing
>     ISBN 3-900051-07-0
>     Platform: x86_64-unknown-linux-gnu (64-bit)
>     <BLANKLINE>
>     R is free software and comes with ABSOLUTELY NO WARRANTY.
>     You are welcome to redistribute it under the terms of the
>     GNU General Public License versions 2 or 3.
>     For more information about these matters see
>     http://www.gnu.org/licenses/.
>     <BLANKLINE>
> **********************************************************************
> }}}

New description:

 A preset `R_PROFILE` variable can cause some R packages to fail to
 build/install and interfere with doctests.

 Georg Grafendorfer [http://groups.google.com/group/sage-
 release/browse_thread/thread/b2827cba9319bfed/41eab313614e6d2a#41eab313614e6d2a
 reported this problem on sage-release].

 For `R_HOME`, this yields a doctest failure if set:
 {{{
 **********************************************************************
 File "devel/sage/sage/misc/interpreter.py", line 187, in
 sage.misc.interpreter.SageInteractiveShell.system_raw
 Failed example:
     shell.system_raw('R --version')
 Expected:
     R version ...
 Got:
     WARNING: ignoring environment value of R_HOME
     R version 2.15.2 (2012-10-26) -- "Trick or Treat"
     Copyright (C) 2012 The R Foundation for Statistical Computing
     ISBN 3-900051-07-0
     Platform: x86_64-unknown-linux-gnu (64-bit)
     <BLANKLINE>
     R is free software and comes with ABSOLUTELY NO WARRANTY.
     You are welcome to redistribute it under the terms of the
     GNU General Public License versions 2 or 3.
     For more information about these matters see
     http://www.gnu.org/licenses/.
     <BLANKLINE>
 **********************************************************************
 }}}

 '''Apply''' [attachment:9847_unset_R.patch] to `SAGE_ROOT`.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9847#comment:15>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to