tests on R 3.4 raises extra warning

Open
#7,099 15 comments 0 reactions 1 assignee View on GitHub

@gitstopher is already working on this.

Since Mar 26, 2026.

Assessment

This issue has not been assessed yet.

Description

tests

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

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.