#10967: R breaks if SAGE_LOCAL undefined
------------------------+---------------------------------------------------
   Reporter:  ahd       |       Owner:  tbd     
       Type:  defect    |      Status:  new     
   Priority:  minor     |   Milestone:  sage-4.7
  Component:  packages  |    Keywords:  R       
     Author:            |    Upstream:  N/A     
   Reviewer:            |      Merged:          
Work_issues:            |  
------------------------+---------------------------------------------------

Comment(by jhpalmieri):

 You can use triple quotes in python for multiline strings, so something
 like this (which is untested) might work:
 {{{
 #!python
 def fix_hardcode(file):
     r = open(file).read().replace('#SAGEHACK#',
                                   """if test -n "${SAGE_LOCAL}"; then
    R_HOME_DIR="${SAGE_LOCAL}/lib/R/"
 fi""")
     open(file,'w').write(r)
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10967#comment:11>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to