#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:
--------------------------+-------------------------------------------------
Comment(by kcrisman):
Yes, and this fixes the original problem too.
The only issue is that
{{{
"""
Reads filename into the R interpreter by calling R's source
function on a
read-only file connection.
EXAMPLES:
sage: filename = tmp_filename()
sage: f = open(filename, 'w')
sage: f.write('a <- 2+2\n')
sage: f.close()
sage: r.read(filename)
sage: r.get('a')
'[1] 4'
"""
}}}
So the idea is perhaps that we do NOT see the output from such an
evaluation. The problem is that then one has to know that one should
assign the big computation to a name via `variable <- command`, and that
is not obvious.
What is the best solution here? To change the reading of lines or to make
the documentation REALLY clear? My preference would be to have long
commands still output, just like short commands; it seems unfair to have
them suddenly do this.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11436#comment:2>
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.