New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
write pexpect interface to R #839
Comments
comment:3
This is of huge importance to the wider adoption of sage. Thank you for working on it. |
comment:4
Is this still relevant or doe rpy take care of all of this? Cheers, Michael |
comment:5
This is definitely still very relevant. It would, e.g., make it possible to have an R mode in the notebook. |
Attachment: 839-r-pexpect-initial.patch.gz Attachment: 839-r-notebook.patch.gz Add notebook support for R |
comment:8
old but still relevant: The R language – a short companion .. summarizes much of the specific aspects and ideas behind the R language. |
comment:9
attached bundle for a first "working" version. this is still not stable to use, but: i've setup a wiki page to show its functionality: http://wiki.sagemath.org/R still missing:
|
Attachment: 839-r-pexpect-schilly-1.hg.gz based on previous patches, somewhat working version. see comment no. 9 |
comment:10
This is AWESOME!!!! |
comment:11
The second thing I try -- use R's install.packages -- leads to problems:
This does start to work, but eventually fails (that this fails may be my fault -- maybe HSAUR is not longer at CRAN):
|
comment:12
Replying to @williamstein:
thx for the flowers ;) some ideas and what i'm trying next: (help welcome) i think installing packages is rather difficult. at my computer, i even don't see the GUI selector or anything else, just hangs. your output, last line, says: i'll add a default mirror in the options, but this alone solves nothing. there is a command line option when calling R itself: a good solution could be to avoid installing + local compilation and just ship more packages with R (in standard) and repack additional libraries of packages into optional SPKGs. i think this should be pretty straightforward (R could be easily convinced to search in multiple paths for packages if necessary ...) i've also not figured out how to plot and why there are missing sage objects. there are certainly many bugs. i'll also try to introduce my custom prompt (appending a command to each line of code) and running R in full silent mode (no prompt, no questions, no nothing, reduced warnings level, ...). restore from last session and searching directories for stored configurations was also enabled --- disabling all this should give much less surprises ;) also there are bugs in the R-2-Sage converter. e.g. i just had to explain python that NA means None ... i should also check some details inside the bundled R inside the |
comment:13
attention: I've updated my work status, but something didn't work with the bundle. Just the one in the middle (click here) is the interesting one. maybe i should not have updated... |
Attachment: 839-r-pexpect-schilly-2.hg.gz this replaces all patches from above - better working, but still not stable, repaired |
comment:14
Replying to @haraldschilly:
i've repaired it. i think this should work now. (concerning the patch ;) |
Attachment: 839.hg.gz |
Attachment: sage-839-referee1.patch.gz |
comment:16
REFEREE REPORT:
That should give a proper error message. Also, after doing the above, for some reason all the text in the rest of my session is BOLD. |
Attachment: 839.2.hg.gz |
comment:18
Yay! Apply 839.2.hg . It has all of the patches and is based against 3.0.alpha6. |
comment:19
Merged 839.2.hg in Sage 3.0.rc0 |
CC: @mwhansen @haraldschilly
Component: interfaces
Issue created by migration from https://trac.sagemath.org/ticket/839
The text was updated successfully, but these errors were encountered: