[Rcpp-devel] How to use Rcpp with Qt Creator (Mac)?

Klemens Weigl klemens.weigl at gmail.com
Sat May 16 18:45:40 CEST 2015


Hi!

Thank you very much for all your answers!

Well, I have tried with qmake, but so far it is still not working. Though
in my directory: /Library/Frameworks/R.framework/Resources/library
Rcpp, RInside and inline have been installed via RStudio and can be found
via the Terminal.


I hope that somewhen in the future Rcpp and RInside will be automatically
included in Qt, such as

#include "math.h"

#include "cmath"

#include "QtMath"

#include "qmath.h"

are already embedded.

Nevertheless, Rcpp and RInside and the statistics-functionality would have
been much more convenient, but for me as a beginner it is pretty difficult
to make them run.

An easy tutorial to learn and test it step-by-step would be nice!
Otherwise, no problem. I also have got different formulas to apply it (with
a bit more code) via one of the other math-classes already provided by Qt.


Kind regards,
Klemens





2015-05-16 4:59 GMT+02:00 Dirk Eddelbuettel <edd at debian.org>:

>
> On 15 May 2015 at 19:30, Kevin Ushey wrote:
> | That `R_running_as_main_program` error should be fixed R 3.2.0-patched.
> |
> | See: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=15899
>
> Oh, dang, I _knew_ I had actually seen that bug report of yours.
> I just didn't remember now. Thanks for the reminder!
>
> | If that hot-fix helps then that's good; otherwise, I would suggest
> | users patching their R headers after installation.
>
> The hot-fix seems fine: I moved the include of RInterface.h from
> RInsideCommon.h (which ends up in several places) to RInside.cpp (where it
> is
> needed).  In any event, it is in a branch (and I added two more commits
> there):
>
>
> https://github.com/eddelbuettel/rinside/tree/feature/no-rinterface-header
>
> Dirk
>
> | Kevin
> |
> | On Fri, May 15, 2015 at 6:42 PM, Dirk Eddelbuettel <edd at debian.org>
> wrote:
> | >
> | > On 15 May 2015 at 20:25, Dirk Eddelbuettel wrote:
> | > | [ Using qt5 on Ubuntu 15.05, that currently fails with a linking
> error
> | > |   main.o:(.bss+0x0): multiple definition of
> `R_running_as_main_program'
> | > |   but I am pretty certain this still worked just a few weeks/months
> ago under
> | > |   the previous Ubuntu release. ]
> | >
> | > A hot-fix for this issue --not including RInterface.h -- is now in a
> new
> | > branch 'feature/no-rinterface-header' on GitHub, see the commit
> | >
> | >
> https://github.com/eddelbuettel/rinside/commit/0ff27da47e42f04017091e48f44c92a1897f6ba2
> | >
> | > for more.  It will need some testing.
> | >
> | > Dirk
> | >
> | > --
> | > http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
> | > _______________________________________________
> | > Rcpp-devel mailing list
> | > Rcpp-devel at lists.r-forge.r-project.org
> | >
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150516/f36f37a8/attachment-0001.html>


More information about the Rcpp-devel mailing list