[education/rkward] rkward/rbackend: Properly reset R default library locations, when restarting backend.
Thomas Friedrichsmeier
null at kde.org
Sat Jun 15 10:50:10 BST 2024
Git commit 07e34f0a8b547f63b777ac316fda7ec4dbe4c349 by Thomas Friedrichsmeier.
Committed on 15/06/2024 at 09:50.
Pushed by tfry into branch 'master'.
Properly reset R default library locations, when restarting backend.
M +3 -3 rkward/rbackend/rkrinterface.cpp
https://invent.kde.org/education/rkward/-/commit/07e34f0a8b547f63b777ac316fda7ec4dbe4c349
diff --git a/rkward/rbackend/rkrinterface.cpp b/rkward/rbackend/rkrinterface.cpp
index 524a1112f..3127d973d 100644
--- a/rkward/rbackend/rkrinterface.cpp
+++ b/rkward/rbackend/rkrinterface.cpp
@@ -420,9 +420,9 @@ void RInterface::handleRequest (RBackendRequest* request) {
// find out about standard library locations
runStartupCommand(new RCommand("c(path.expand(Sys.getenv(\"R_LIBS_USER\")), .libPaths())\n", RCommand::GetStringVector | RCommand::App | RCommand::Sync), chain,
[this](RCommand *command) {
- RK_ASSERT (command->getDataType () == RData::StringVector);
- RKSettingsModuleRPackages::r_libs_user = command->stringVector ().value (0);
- RKSettingsModuleRPackages::defaultliblocs += command->stringVector ().mid (1);
+ RK_ASSERT(command->getDataType() == RData::StringVector);
+ RKSettingsModuleRPackages::r_libs_user = command->stringVector().value(0);
+ RKSettingsModuleRPackages::defaultliblocs = command->stringVector().mid(1);
RCommandChain *chain = command->parent;
RK_ASSERT (chain);
More information about the rkward-tracker
mailing list