[education/rkward] rkward/rbackend: Update code comment

Thomas Friedrichsmeier null at kde.org
Wed Sep 3 06:48:52 BST 2025


Git commit 3ac0b45fa5dac7f7051116f2d427d654fa811ab5 by Thomas Friedrichsmeier.
Committed on 01/09/2025 at 15:38.
Pushed by tfry into branch 'master'.

Update code comment

M  +3    -1    rkward/rbackend/rkrbackend.cpp

https://invent.kde.org/education/rkward/-/commit/3ac0b45fa5dac7f7051116f2d427d654fa811ab5

diff --git a/rkward/rbackend/rkrbackend.cpp b/rkward/rbackend/rkrbackend.cpp
index 1a733c8b5..b4e51548c 100644
--- a/rkward/rbackend/rkrbackend.cpp
+++ b/rkward/rbackend/rkrbackend.cpp
@@ -233,7 +233,9 @@ int RReadConsole(const char *prompt, unsigned char *buf, int buflen, int hist) {
 
 					Problems to deal with:
 					- R_ReadConsole serves a lot of different functions, including reading in code, but also handling user input for readline() or browser(). This makes it necessary to carefully track the current status using "repl_status". You will find repl_status to be modified at a couple of different functions.
-					- One difficulty lies in finding out, just when a command has finished (successfully or with an error). RKToplevelStatementFinishCallback(), and doError() handle the respective cases.
+					- One difficulty lies in finding out, just when a command has finished (successfully or with an error).
+					See below (RKRBackend::repl_status.user_command_status == RKRBackend::RKReplStatus::UserCommandRunning)
+					for this, and and doError() for finding out, if an error occured.
 					NOTE; in R 2.12.0 and above, RFn::Rf_countContexts() might help to find out when we are back to square 1!
 					*/
 					RKRBackend::repl_status.user_command_transmitted_up_to = 0;



More information about the rkward-tracker mailing list