Changeset View
Changeset View
Standalone View
Standalone View
src/backends/R/rbackend.cpp
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 59 | { | |||
---|---|---|---|---|---|
60 | qDebug()<<"Spawning a new R session"; | 60 | qDebug()<<"Spawning a new R session"; | ||
61 | 61 | | |||
62 | return new RSession(this); | 62 | return new RSession(this); | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | Cantor::Backend::Capabilities RBackend::capabilities() const | 65 | Cantor::Backend::Capabilities RBackend::capabilities() const | ||
66 | { | 66 | { | ||
67 | qDebug()<<"Requesting capabilities of RSession"; | 67 | qDebug()<<"Requesting capabilities of RSession"; | ||
68 | return Cantor::Backend::InteractiveMode | | 68 | Cantor::Backend::Capabilities cap= | ||
69 | Cantor::Backend::SyntaxHighlighting | | 69 | SyntaxHighlighting| | ||
70 | Cantor::Backend::Completion | | 70 | Completion | | ||
71 | Cantor::Backend::VariableManagement; | 71 | InteractiveMode; | ||
72 | | ||||
73 | if (RServerSettings::variableManagement()) | ||||
asemke: Why do you want to have this as an configurable parameter? Why not to always enable and use the… | |||||
sirgienko: For disabling variable model by user. | |||||
74 | cap |= VariableManagement; | ||||
75 | | ||||
76 | return cap; | ||||
72 | } | 77 | } | ||
73 | 78 | | |||
74 | bool RBackend::requirementsFullfilled() const | 79 | bool RBackend::requirementsFullfilled() const | ||
75 | { | 80 | { | ||
76 | QFileInfo info(QStandardPaths::findExecutable( QLatin1String("cantor_rserver") ) ); | 81 | QFileInfo info(QStandardPaths::findExecutable( QLatin1String("cantor_rserver") ) ); | ||
77 | return info.isExecutable(); | 82 | return info.isExecutable(); | ||
78 | } | 83 | } | ||
79 | 84 | | |||
Show All 32 Lines |
Why do you want to have this as an configurable parameter? Why not to always enable and use the variable model?