[rkward] rkward/rbackend: As another afterthought, print a second value in order to avoid potential issues with line ends included in the output chunk.

Thomas Friedrichsmeier null at kde.org
Wed Apr 25 10:08:01 UTC 2018


Git commit 1acc9cc350de06b45865a44888949afbacfa3a62 by Thomas Friedrichsmeier.
Committed on 25/04/2018 at 10:07.
Pushed by tfry into branch 'master'.

As another afterthought, print a second value in order to avoid potential issues with line ends included in the output chunk.

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

https://commits.kde.org/rkward/1acc9cc350de06b45865a44888949afbacfa3a62

diff --git a/rkward/rbackend/rkrbackend.cpp b/rkward/rbackend/rkrbackend.cpp
index 49b09b09..78654fc6 100644
--- a/rkward/rbackend/rkrbackend.cpp
+++ b/rkward/rbackend/rkrbackend.cpp
@@ -1118,7 +1118,7 @@ bool RKRBackend::startR () {
 #ifdef Q_OS_WIN
 	// See the corresponding note in RWriteConsoleEx(). For auto-detecting UTF8 markers in console output.
 	win_do_detect_winutf8markers = true;
-	runDirectCommand("print(\"X\", print.gap=1, quote=FALSE)");
+	runDirectCommand("print(c(\"X\",\"Y\"), print.gap=1, quote=FALSE)");
 	win_do_detect_winutf8markers = false;
 #endif
 



More information about the rkward-tracker mailing list