RInside Version 0.2.12
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
main.cpp
Go to the documentation of this file.
1 // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8; -*-
2 //
3 // Qt usage example for RInside, inspired by the standard 'density
4 // sliders' example for other GUI toolkits
5 //
6 // Copyright (C) 2011 Dirk Eddelbuettel and Romain Francois
7 
8 
9 #include <QApplication>
10 #include "qtdensity.h"
11 
12 int main(int argc, char *argv[])
13 {
14  RInside R(argc, argv); // create an embedded R instance
15 
16  QApplication app(argc, argv);
17  QtDensity qtdensity(R); // pass R inst. by reference
18  return app.exec();
19 }
int main(int argc, char *argv[])
Definition: main.cpp:12