Skip to content

test.data.table() creates an object in global env #2828

@etienne-s

Description

@etienne-s

Running test.data.table() creates a data.table x in my global environment. I think this shouldn't happen.

str(x)
# Classes ‘data.table’ and 'data.frame':	4 obs. of  3 variables:
#  $ A: num  17 3 NA 0
#  $ B: num  34 NA 2 0.1
#  $ C: num  2.3 1 NA 0
#  - attr(*, ".internal.selfref")=<externalptr>

It looks like it comes from test id 1904.

Session info
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252
[4] LC_NUMERIC=C                   LC_TIME=French_France.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] data.table_1.11.0

loaded via a namespace (and not attached):
[1] compiler_3.5.0 tools_3.5.0    yaml_2.1.19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions