#11436: Fix R reading files
--------------------------+-------------------------------------------------
   Reporter:  kcrisman    |          Owner:  was       
       Type:  defect      |         Status:  new       
   Priority:  major       |      Milestone:  sage-4.7.1
  Component:  interfaces  |       Keywords:            
Work_issues:              |       Upstream:  N/A       
   Reviewer:              |         Author:            
     Merged:              |   Dependencies:            
--------------------------+-------------------------------------------------
 The current way we configure the R Pexpect interface is to have a 1024
 character cutoff to trying to read from a file.

 Problem: this doesn't actually seem to work.
 {{{

     sage: s = 'matrix(c(1, 1, 1, 1,' + ' '*987 + '2,2,2,2), ncol=4)'
     sage: len(s)
     1024
     sage: r.eval(s)
     '     [,1] [,2] [,3] [,4]\n[1,]    1    1    2    2\n[2,]    1    1
 2    2'
     sage: s = 'matrix(c(1, 1, 1, 1,' + ' '*988 + '2,2,2,2), ncol=4)'
     sage: len(s)
     1025
     sage: r.eval(s)
     ''
 }}}

 jhpalmieri helped track this down.  See [http://groups.google.com/group
 /sage-support/browse_thread/thread/daa01227a8c4865d this sage-support
 thread] for more details.

 Helpful links:
  * [http://rss.acs.unt.edu/Rdoc/library/base/html/source.html doc for R
 source command]
  * [http://rss.acs.unt.edu/Rdoc/library/base/html/connections.html doc for
 R file command(s)]

 It seems like everything is creating files as should be, and using the
 verbose option to source shows that at least something's being computed,
 but the result is not showing up in Sage, possibly due to misuse of
 "source", or "file".

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11436>
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