[Rcpp-devel] [R] Plot and curve inside C++

Dirk Eddelbuettel edd at debian.org
Sun Mar 6 18:49:25 CET 2011


On 6 March 2011 at 17:13, Paul Smith wrote:
| On Sun, Mar 6, 2011 at 4:53 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
| > | However, I would like to plot graphs from inside a C++ project.
| > | Thus, I would like to know what include paths and libs should I add to
| > | my C++ project. I am using QtCreator as an IDE on Fedora 14.
| >
| > You need to read the Makefile that supports these example and understand what
| > it does.  You then need adapt your .pro file for Qt accordingly as it will
| > create your Makefile. QtCreator is just a shell / ide and I fear you still
| > need to work out how to do this. If you want something truly portable you
| > have to do what the makefile does and compute locations for R, Rcpp and
| > RInside on the fly.  If you don't need portability you can hardcode the
| > paths.  If you're completely lost try reducing things to a simple example of
| > one main() function with one widget displaying the png we created. I can try
| > to help you from there as I had a bit of Qt / qmake experience.
| >
| > Also, the vignette Rcpp-package explains how to use Rcpp in your own packages
| > and may be of help too.
| 
| Thanks again, Dirk. I will wait a bit, as perhaps there is someone on
| this list that has already a working .pro file.

That's one approach. 

Another would be to write and contribute it as a first example for a new
section examples/qt/ within the RInside sources.  Eternal fame awaits...

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list