tests on R 3.4 raises extra warning
@gitstopher is already working on this.
Since Mar 26, 2026.
Assessment
This issue has not been assessed yet.
Description
https://rdatatable.gitlab.io/data.table/web/checks/data.table/test-lin-ancient-cran/00check.log
latest master
* checking tests ... OK
Running ‘autoprint.R’
Comparing ‘autoprint.Rout’ to ‘autoprint.Rout.save’ ...17,20d16
< a
< <int>
< 1: 1
< 2: 3
27,30d22
< a
< <int>
< 1: 1
< 2: 3
32,36d23
< Index: <a>
< a
< <int>
< 1: 1
< 2: 3
38,42d24
< Index: <a>
< a
< <int>
< 1: 1
< 2: 3
60,63d41
< a
< <int>
< 1: 1
< 2: 5
65,68d42
< a
< <int>
< 1: 1
< 2: 6
72,75d45
< a
< <int>
< 1: 1
< 2: 5
142,144d111
< a
< <int>
< 1: 9
150,153d116
< a
< <int>
< 1: 10
< 2: 10
155,158d117
< a
< <int>
< 1: 10
< 2: 10
160,163d118
< a
< <int>
< 1: 10
< 2: 10
209,214d163
< x y
< <num> <num>
< 1: 1 1
< Warning message:
< In `[.data.table`(dt, , `:=`(y, 1)) :
< A shallow copy of this data.table was taken so that := can add or remove 1 columns by reference. At an earlier point, this data.table was copied by R (or was created manually using structure() or similar). Avoid names<- and attr<- which in R currently (and oddly) may copy the whole data.table. Use set* syntax instead to avoid copying: ?set, ?setnames and ?setattr. It's also not unusual for data.table-agnostic packages to produce tables affected by this issue. If this message doesn't help, please report your use case to the data.table issue tracker so the root cause can be fixed or this message improved.
- Dominant language
- R
- Stars
- 3.9k
- Forks
- 1.1k
- Avg merge
- 14h 4m
- Merged PRs (30d)
- 4
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 Rdatatable/data.table
-
as.data.table() recurses without end on a survival::Surv object (or any data.frame carrying one) Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Rdatatable/data.table#7887 ·
-
consistency tests
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Rdatatable/data.table#7853 · 3 comments ·
-
internals
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Rdatatable/data.table#6938 · 1 comment ·
-
encoding fread
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Rdatatable/data.table#5179 · 8 comments ·
-
documentation programming
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Rdatatable/data.table#3199 · 3 comments ·
All issues in Rdatatable/data.table
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
beginners blocker
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enviPathR OpenBuild Error Build OK Build Warning policies-accepted pre-review precheck-passed
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Bioconductor/BiocContributions#207 · 6 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
datacarpentry/semester-biology#1255 ·