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
What about using "TYPEOF"? Please see R Internals (
https://cran.r-project.org/doc/manuals/r-release/R-ints.html#SEXPTYPEs) for
more details.
#include
using namespace Rcpp;
// [[Rcpp::export]]
DataFrame rcpp_df(){
NumericVector numeric = {1,3};
IntegerVector integer = {1,3};
Character
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
Is there a way to discover the value type for the result of calling
DataFrame::operator[]? For example, is there a metafiction that will deduce
the type?
A similar question could be asked about the result of calling
Vector::operator[].
I understand that these functions actually return a proxy
> 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
On 6 December 2019 at 16:13, John O'Shea wrote:
| Hello, forgive me in advance as I am not familiar with R developing or the
| more technical side of R usage and programming in general. I have had a
| professor of mine request I use the Rcpp package to rewrite a function in
| R, but I have been ru
Hello, forgive me in advance as I am not familiar with R developing or the
more technical side of R usage and programming in general. I have had a
professor of mine request I use the Rcpp package to rewrite a function in
R, but I have been running into issues with any usage of the Rcpp package.
My
13 matches
Mail list logo