Logo Search packages:      
Sourcecode: cantor version File versions  Download package


    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor,
    Boston, MA  02110-1301, USA.

    Copyright (C) 2009 Alexander Rieder <alexanderrieder@gmail.com>

#include "rbackend.h"

#include "rsession.h"
#include "rextensions.h"
#include "settings.h"
#include "rsettingswidget.h"

#include <kdebug.h>
#include <kstandarddirs.h>

#include "cantor_macros.h"
#include <QMessageBox>

RBackend::RBackend( QObject* parent,const QList<QVariant> args ) : Cantor::Backend( parent,args )
    kDebug()<<"Creating RBackend";

    new RScriptExtension(this);
    new RPlotExtension(this);

    kDebug()<<"Destroying RBackend";

00048 QString RBackend::id() const
    return "r";

00053 Cantor::Session* RBackend::createSession()
    kDebug()<<"Spawning a new R session";

    return new RSession(this);

00060 Cantor::Backend::Capabilities RBackend::capabilities() const
    kDebug()<<"Requesting capabilities of RSession";
    return  Cantor::Backend::InteractiveMode |
            Cantor::Backend::SyntaxHighlighting |

00068 bool RBackend::requirementsFullfilled() const
    QFileInfo info(KStandardDirs::findExe( "cantor_rserver" ) );
    return info.isExecutable();

00074 QWidget* RBackend::settingsWidget(QWidget* parent) const
    return new RSettingsWidget(parent);

00079 KConfigSkeleton* RBackend::config() const
    return RServerSettings::self();

00084 KUrl RBackend::helpUrl() const
    return i18nc("the url to the documentation of R, please check if there is a translated version and use the correct url",
                 "http://rwiki.sciviews.org/doku.php?id=rdoc:rdoc" );

00090 QString RBackend::description() const
    return i18n("R is a language and environment for statistical computing and graphics, similar to the S language and environment. <br/>"\
                "It provides a wide variety of statistical (linear and nonlinear modelling, "\
                "classical statistical tests, time-series analysis, classification, clustering, ...) "\
                "and graphical techniques, and is highly extensible. The S language is often the "\
                "vehicle of choice for research in statistical methodology, "\
                "and R provides an Open Source route to participation in that activity.");

K_EXPORT_CANTOR_PLUGIN(rbackend, RBackend)

#include "rbackend.moc"

Generated by  Doxygen 1.6.0   Back to index