[education/rkward] rkward/windows: Set print.eval for plot previews (important for ggplot objects)

Thomas Friedrichsmeier null at kde.org
Fri Jun 24 16:14:13 BST 2022


Git commit c47023216f917c07a7ce7eef448c351739925cd6 by Thomas Friedrichsmeier.
Committed on 24/06/2022 at 15:14.
Pushed by tfry into branch 'master'.

Set print.eval for plot previews (important for ggplot objects)

M  +1    -1    rkward/windows/rkcommandeditorwindow.cpp

https://invent.kde.org/education/rkward/commit/c47023216f917c07a7ce7eef448c351739925cd6

diff --git a/rkward/windows/rkcommandeditorwindow.cpp b/rkward/windows/rkcommandeditorwindow.cpp
index 9d87fc92..b4315a68 100644
--- a/rkward/windows/rkcommandeditorwindow.cpp
+++ b/rkward/windows/rkcommandeditorwindow.cpp
@@ -914,7 +914,7 @@ void RKCommandEditorWindow::doRenderPreview () {
 		preview->setLabel (i18n ("Preview of generated plot"));
 		command = "olddev <- dev.cur()\n"
 		          ".rk.startPreviewDevice(%2)\n"
-		          "try(source(%1, local=TRUE))\n"
+		          "try(source(%1, local=TRUE, print.eval=TRUE))\n"
 		          "if (olddev != 1) dev.set(olddev)\n";
 		command = command.arg (RObject::rQuote (preview_input_file->fileName ()), RObject::rQuote (preview_manager->previewId ()));
 	} else if (mode == ConsolePreview) {


More information about the rkward-tracker mailing list