`BEGIN_CPP11 + END_CPP11` -> using `Rf_errorcall(call, ...)`
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with inst/include/cpp11/declarations.hpp around END_CPP11 and R/register.R around generate_cpp_functions(). Trace how package and funs$name are available to generated functions, then determine the intended macro or sibling interface. Done means the generated code can construct a call for Rf_errorcall() instead of passing R_NilValue, with coverage for the resulting behavior.
Written by the indexing model from the issue text.
Description
I believe we could expand on END_CPP11 (or add a sibling).
so that it would take parameters, easily generated in generate_cpp_functions(), i.e. package and funs$name
https://github.com/r-lib/cpp11/blob/51f4cd5ad9425a491dedf951a3679346d416e51c/R/register.R#L165-L185
so that we could construct a call to use in Rf_errorcall() instead of using R_NilValue.
- Dominant language
- C++
- Stars
- 224
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from r-lib/cpp11
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·