[Rcpp-devel] questions about Rcpp

Yuanchao BO boyuanchao at gmail.com
Mon Feb 25 22:06:51 CET 2013


Hi Dirk and Kevin,

Thanks very much for your responses!

It seems Rcpp is an intermediate step between C++ and R.

I will take a look at the examples that you mentioned.

Regards,
Yuanchao

On Mon, Feb 25, 2013 at 1:38 PM, Dirk Eddelbuettel <edd at debian.org> wrote:

>
> Hi Yuanchao,
>
> On 25 February 2013 at 11:47, Yuanchao BO wrote:
> | I have some questions about Rcpp. I have a complicated R code.
>
> Rcpp does not change or simplify your R code.  If anything it may make it
> more complicated as you now have R and C++.
>
> But it may also make it a lot faster, or allow you to do things you cannot
> otherwise do.
>
> | Can I run the code in C++ by using Rcpp?
>
> Rcpp allows you to access C++ code from R in ways that are easier (we
> think)
> than the default. It does not create code.
>
> | Do I need to write extra codes to integrate R into C++?
>
> It depends. You sometimes need a little bit glue (but generally less than
> you
> would with C) and in many situations even the glue gets written.
>
> | I read some of the Rcpp tutorials and I am under an impression that most
> of the
> | Rcpp code is C++ code. I still feel intimidated by the complexity of
> Rcpp.
>
> Yes, there is certainly no Rcpp without C++. It does not make C++ go away,
> it
> does try to make it easier to combine R with C++.
>
> Maybe have a look at the Rcpp-introduction vignette as well as at the Rcpp
> Gallery at http://gallery.rcpp.org .
>
> Hope this helps,  Dirk
>
> --
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20130225/46ece528/attachment.html>


More information about the Rcpp-devel mailing list