Skip to content

tests on R 3.4 raises extra warning #7099

@jangorecki

Description

@jangorecki

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions