[Rcpp-devel] [R] Plot and curve inside C++
Paul Smith
phhs80 at gmail.com
Sun Mar 6 17:45:51 CET 2011
On Sun, Mar 6, 2011 at 2:53 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
> |
> | I would like to use
> |
> | - plot,
> | - curve
> |
> | inside a C++ program. What R package do you recommend? Rcpp?
>
> You can use base R, embedding R is explained in the 'Writing R Extensions'
> manual. That said, the material is a little on the advanced side.
> Rcpp and RInside try to provide an easier API, and some users find it
> helpful.
>
> As for your question, I am committing the code below as rinside_sample11.cpp
> in the examples/standard/ directory of RInside. With the generic Makefile in
> that diretory, you just say 'make' and the rinside_sample11 binary results
> (as do all the other examples and tests there).
>
> I hope you find it mostly self-explanatory, if not please come to the
> rcpp-devel list for help.
Thanks, Dirk. I have tried your example, and I can say that it works
fine. 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.
Paul
More information about the Rcpp-devel
mailing list