-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support/tests for exposing functions with tuples #860
Conversation
Codecov Report
@@ Coverage Diff @@
## master #860 +/- ##
==========================================
+ Coverage 86.62% 86.63% +0.01%
==========================================
Files 12 12
Lines 4365 4369 +4
==========================================
+ Hits 3781 3785 +4
Misses 584 584
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
||
/** | ||
* The Rcpp::wrap class is used to convert a C++ type to an R object type. | ||
* Rather than implement anything bespoke for tuples we simply return an R list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Indeed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Thanks @andrjohns! everything passing so I'll go ahead and merge. |
Thanks both! I'll have a look into upstreaming this into |
Submission Checklist
Summary
Reported in #859,
Rcpp
doesn't support convertingstd::tuple<>
types to/from R. This PR adds the specialisations necessary forRcpp
, as well as tests for exposing tuple functions.Copyright and Licensing
Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Andrew Johnson
By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses: