futureverse / futureverse/marshal

marshal: Rcpp::sourceCpp()

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
15
Forks
1
PR merge metrics
No merged PRs in 30d

Description

From https://future.futureverse.org/articles/future-4-non-exportable-objects.html#package-rcpp:

```r
Rcpp::sourceCpp(code = "
#include
using namespace Rcpp;

// [[Rcpp::export]]
int my_length(NumericVector x) {
return x.size();
}
")
```

This produces:

```r
my_length()
```

which holds an external reference pointer.

Can such an object be marshalled?

Contributor guide

Open the contributing guide

Research direction

Start with the Rcpp::sourceCpp() example in the issue and inspect how marshal handles objects containing external reference pointers. Determine whether this object can be marshalled safely across R processes; document the result and any limitations or required scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.