Brook,
Rcpp: Browseable and searchable class hierarchy
http://dirk.eddelbuettel.com/code/rcpp/html/
(still complicated as there is a lot of "machinery")
RInside: Similar (but less as there simply is less: Rcpp does the marshalling)
http://dirk.eddelbuettel.com/code/rinside/html/
Oth
The sample16 showed several things you might need in your case:
1. construct R objects and functions using Rcpp
2. call them through the embedded R and pass results back to C++
I think it is a good example, if you want to write testing cases for R/C++
bridge code.
Best,
KK
On Fri, Dec 6, 2019
> On Dec 6, 2019, at 3:58 PM, Qiang Kou wrote:
>
> I suggest you check all the examples of RInside. For example,
>
> https://github.com/eddelbuettel/rinside/blob/master/inst/examples/standard/rinside_sample16.cpp
>
> This might meet your requirements.
Thanks.
From the examples I glean the f
I suggest you check all the examples of RInside. For example,
https://github.com/eddelbuettel/rinside/blob/master/inst/examples/standard/rinside_sample16.cpp
This might meet your requirements.
Best,
Qiang Kou
On Fri, Dec 6, 2019 at 2:54 PM Brook Milligan wrote:
>
>
> > On Dec 6, 2019, at 3:5
> On Dec 6, 2019, at 3:50 PM, Qiang Kou wrote:
>
> RInside is to call the embedded R.
>
> What do you want to do with R/Rcpp?
I am trying to write a bridge between R and C++ and need some test cases. I
was hoping I could use Rcpp objects directly in C++, but apparently that is not
possible
RInside is to call the embedded R.
What do you want to do with R/Rcpp?
Best,
KK
___
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
> On Dec 6, 2019, at 3:00 PM, Balamuta, James Joseph
> wrote:
>
> The segfault is related to `int main() {}`. There is no need to use `int
> main() {}` unless you want to make this standalone in which case you want to
> use RInside to embed R within a C++ application.
I am in fact trying to
Greetings and Salutations Brook,
The segfault is related to `int main() {}`. There is no need to use `int main()
{}` unless you want to make this standalone in which case you want to use
RInside to embed R within a C++ application.
Rcpp enables embedding C++ within R. So, R already is using it
I am trying to build some simple test cases of Rcpp. One of the simplest I can
think of is below.
#include
int main ()
{
auto i = Rcpp::IntegerVector::create(1,2);
}
This compiles fine and links against libR, but segmentation faults when run.
My test system is a Mac with clang++.
Is ther