Bug 380550 - use Rs new callbacks
Summary: use Rs new callbacks
Status: RESOLVED FIXED
Alias: None
Product: rkward
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-20 16:49 UTC by Thomas Friedrichsmeier
Modified: 2005-09-15 07:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Friedrichsmeier 2005-04-20 16:49:53 UTC
-- 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. 
Comment 1 RKWard Team 2005-04-21 06:07:28 UTC
-- 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\)".
Comment 2 Thomas Friedrichsmeier 2005-05-04 10:11:49 UTC
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. 
Comment 3 Thomas Friedrichsmeier 2005-09-13 10:17:04 UTC
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. 



Comment 4 Thomas Friedrichsmeier 2005-09-13 10:17:04 UTC
- **assigned_to**: nobody --> tfry
Comment 5 Thomas Friedrichsmeier 2005-09-15 07:05:26 UTC
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 
Comment 6 Thomas Friedrichsmeier 2005-09-15 07:05:26 UTC
- **status**: open --> closed