-- This ticket was imported from http://sourceforge.net/p/rkward/feature-requests/16 on 2017-05-31 14:48:55 +0100 -- R 2.1.0 seems to provide some new useful callbacks for embedding. E.g.: extern int \(\*ptr\_R\_ShowFiles\)\(int, char \*\*, char \*\*, char \*, Rboolean, char \*\); in order to call back the embedding application when paging needs to be done. See also: http://stat.ethz.ch/R-manual/R-devel/doc/manual/R-exts.html\#Setting-R-callbacks Once we all run R 2.1.0 \(I don't yet\), and think a reasonable portion of our userbase does, too, we should start using those callbacks.
-- Originally posted by (AT sourceforge.net): ecoch -- Logged In: YES user\_id=1131050 Also R\_EditFile would be useful. The current version of RKWard will not happily handle calls like: "fix\(MyFunc\)".
Logged In: YES user\_id=300591 Also seemingly important: R\_ReadConsole, R\_WriteConsole. For instance the demo packages use R\_ReadConsole to place a "To continue press <Enter>" prompt. This still goes to stdout \(and you can press enter in the console you started rkward from\), but should rather happen in a dialog.
Logged In: YES user\_id=300591 Status update: R\_ReadConsole, and R\_ShowMessage have been implemented. R\_WriteConsole will be very useful in replacing the entire sinking-to-file-business, however this is a larger project. Also it will only really be useful, when R adds something like R\_WriteErr. We should probably delay this. R\_ResetConsole, R\_FlushConsole, and R\_Clearerr have been overridden to have no effect. We may or may not want to reconsider this for R\_FlushConsole, once we user R\_WriteConsole to get at the output. R\_loadhistory, R\_savehistory are untouched, and will remain untouched, as we keep our own history, and do not submit commands the regular way, anyway. R\_busy will probably not be needed. R\_Suicide: Should definitely be implemented. No work done so far. R\_Cleanup: Not sure about this one. Delaying. R\_EditFile, R\_EditFiles, R\_ShowFiles: Work on this has started. R\_ChooseFile: Work has not yet started on this, but should be trivial to implement.
- **assigned_to**: nobody --> tfry
Logged In: YES user\_id=300591 Done. Although some of those will need some polishing. Open separate requests / bug-reports for those. Files to look at for code details: rbackend/rembedinternal.s rbackend/rinterface.h
- **status**: open --> closed