C level access to setalloccol internal function alloccolwrapper

Open
#4,439 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, r
Domain
api

Research direction

Start by reading src/assign.c around alloccolwrapper() and its neighbouring functions, then review how R_RegisterCCallable() is currently used. Determine whether exposing alloccolwrapper() is the appropriate scope and whether a tester PR can validate the callable interface. Done means the export proposal has consensus and its external use is tested.

Written by the indexing model from the issue text.

Description

feature request internals

It is lovely that some C level functionality will be exported in the next release!

@davzim @lsilvest and myself just wrote up a small piece on the Rcpp Gallery on creating a data.table object from C(++).

It would be lovely to also get to do the setalloccol() from that level. I looked into its source, and Calloccolwrapper() to alloccolwrapper() and its neighbouring functions in src/assign.c

Would it be possible to export these? Maybe starting with alloccolwrapper()? I'd be happy to put a tester PR together if there is a consensus view that this may have merit. Now that R_RegisterCCallable() is called it is simple enough to add a second entry.

Dominant language
R
Stars
3.9k
Forks
1.1k
Avg merge
14h 4m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Rdatatable/data.table

All issues in Rdatatable/data.table

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.