Rdatatable / Rdatatable/data.table

as.data.table doesn't handle AsIs columns correctly

Open
#4,935 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

DF <- data.frame(a=1, b=I(matrix(1:10, ncol=10)))
as.data.table(DF)
# Error: C stack usage  7969412 is too close to the limit

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.

Research direction

Start by running the provided data.frame and as.data.table(DF) example to reproduce the C stack overflow, then trace the as.data.table entry point for handling AsIs matrix columns. Done means the conversion completes without recursive stack exhaustion and produces the expected data.table result for the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.