Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
data.table can fail to check that NAMED is 0 before changing a vector, thereby corrupting variables. Below is a specific example, but I suspect that the problem occurs widely in the source code for data.table (based on various attempts with various versions of data.table to get it to work with pqR).
This example is adapted from data.table test number 430 (which crashes when run in pqR because in pqR 3L is a read-only constant). Changing the test to use a variable set to 3L rather than the constant 3L reveals the problem in R-3.5.1 as well (and I expect in all versions of R).
sessionInfo()